Hal 9000 said:
maybe my commentary track sheds light on it around that part of the movie.
Yes, it does.
Your reason was that it seems weird to show a scene where Yoda sense Anakin’s pain only for Yoda to then do nothing about it.
I’d say that’s true, and you implied this, both from a character perspective and from a storytelling perspective. Obviously it’s strange to see that Yoda knew Anakin was suffering (and doing terrible things) and never acted on that information in the future, but it’s even stranger that there is no payoff to the scene of any kind, as if the scene was just thrown in at random.