show the git branch in the chat area as well as the project we are on #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
the line where we show tokens in context and stuff like that should also show the project we are on and the name of the git branch that is used there, if the project is git versioned. clicking the git branch should open a selection of branches in the project and I should be able to select one to switch to a different branch.
they should be shown to the left of the model name. the git branch click presents available branches and switches, the project name click opens a selection of projects and switches the project, but only for draft chats. so as soon as the chat is persisted, it can't be moved to a different project anymore.
Implemented in
aebfe7a. The chat composer status row now shows the project and local Git branch before the model name. Draft chats get a project picker that moves the unsaved draft; saved chats keep their original project and render a non-editable project label. Git repositories get a local-branch picker backed by git for-each-ref and git switch, with validation, clear command errors, active-chat safety, startup/selection/turn-completion refreshes, and cleanup when projects are removed. Added user documentation and an isolated temporary-repository test that creates two branches, discovers them, switches branches, and verifies the resulting state. Review confirmed DS4 has no corresponding project/branch UI, so this is a DS4Server feature and does not alter model, context, token, or KV-cache behavior. Verified with cargo fmt --all -- --check, cargo clippy --all-targets --all-features -- -D warnings, make bundle, and cargo test --all-features (127 passed, 12 hardware-fixture tests ignored).