Skip to content

feat: Track and select Git worktrees used during a session #645

Description

@Luis-WowApps

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions