CodeG sessions are anchored to an initial CWD, but agents can execute commands and modify files in other repositories or Git worktrees during the same session. Currently, the branch shown below the chat remains associated with the original CWD. When work occurs elsewhere, the branch indicator can become incorrect and changes may be absent from the Commits tab.
Please track Git context by resolved worktree path rather than assuming one branch per session. When a session touches multiple Git worktrees, expose a checkout selector and show the corresponding branch, working-tree status, diff, and commits for each one. At minimum, refresh the original checkout’s branch automatically when its HEAD changes.
CodeG sessions are anchored to an initial CWD, but agents can execute commands and modify files in other repositories or Git worktrees during the same session. Currently, the branch shown below the chat remains associated with the original CWD. When work occurs elsewhere, the branch indicator can become incorrect and changes may be absent from the Commits tab.
Please track Git context by resolved worktree path rather than assuming one branch per session. When a session touches multiple Git worktrees, expose a checkout selector and show the corresponding branch, working-tree status, diff, and commits for each one. At minimum, refresh the original checkout’s branch automatically when its HEAD changes.