Add git branch status context chip#11938
Conversation
Co-Authored-By: Warp <agent@warp.dev>
|
This PR is not linked to an issue that is marked with Issue-state enforcement details:
Readiness check:
To continue, link this PR to a same-repo issue such as Powered by Oz |
There was a problem hiding this comment.
This PR is not linked to an issue that is marked with ready-to-implement.
Issue-state enforcement details:
-
Associated same-repo issues checked: #5766
-
Required readiness label:
ready-to-implement
Readiness check:
- #5766: missing
ready-to-implement; readiness labels present: none
To continue, link this PR to a same-repo issue such as Closes #123 in the PR description, and make sure that issue has ready-to-implement.
Powered by Oz
|
@oss-maintainers This PR implements #5766 and includes screenshots plus local/manual testing. Could you please review whether #5766 can be marked |
Description
Adds a new Git Branch Status context chip that shows the current branch plus upstream tracking counts in the prompt/status chip UI:
branch ↑ahead ↓behindwhen the branch has an upstream and counts are available.GitRepoStatusModelmetadata so local repo/file watcher updates refresh the chip without silently fetching from the network.Linked Issue
Fixes #5766
ready-to-specorready-to-implement.Testing
./script/runAutomated checks run locally:
cargo fmt -- --checkcargo clippy -p warp --all-targets --tests -- -D warningscargo check -p warpcargo nextest run -p warp -E 'test(parse_ahead_behind_counts_accepts_git_rev_list_output) | test(test_git_branch_tracking_status_displays_ahead_and_behind_when_upstream_exists) | test(test_git_branch_tracking_status_displays_branch_only_without_upstream) | test(test_git_branch_tracking_status_displays_branch_only_when_counts_are_unavailable) | test(test_git_branch_status_chip_display_value_uses_git_prefix) | test(test_git_status_change_updates_branch_status_chip_value)'Manual verification:
Screenshots / Videos
Agent Mode
CHANGELOG-IMPROVEMENT: Added a Git Branch Status prompt chip that shows branch name with ahead/behind commit counts.
Co-Authored-By: Warp agent@warp.dev