instead of the above;

if (repositoryChnaged) clearCommitMessageToggles();
upateCommitMessageComponent(true); (probably can just remove the argument!)

then remove the changes below.

The commit messages are updated correctly (although perhaps they're being refreshed too frequently this way?)