The only way I can reproduce this is if I leave the commit box expanded while switching branches - this doesn't usually happen because when you commit the pane closes again, so if I follow your steps exactly, step 1 will have closed the commit pane so when I click the commit pane again after switching branches it refreshes. Did you have the commit pane open during the branch switch? If so that explains it, and I'll look at that. My sequence for reproduction is therefore this:
- Commit in one branch
- Click the commit pane again to re-open it
- Switch branches
- Return to commit pane (still open), branch is still the previous one
Closing the commit pane & re-opening it displays the correct branch.
Even though I can't reproduce your exact case, I've changed things so that updates in general always refresh the push option while it's open. Opening the commit pane always refreshes the push to branch.