Skip to content

feat(chat): show the workspace branch under the composer - #293

Merged
oxwen11 merged 2 commits into
mainfrom
port/pie-52-composer-branch
Aug 29, 2026
Merged

oxwen11 merged 2 commits into
mainfrom
port/pie-52-composer-branch

Conversation

@oxwen11

@oxwen11 oxwen11 commented Aug 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Port of pie#52: show the current git branch under the session composer.
  • Adds a minimal git.branch RPC ({ cwd } → { current }). Non-git directories return current: null and the footer stays hidden. Query uses the route-resolved workspace path, not a sideways project lookup.

Test plan

  • turbo run test --filter=@vibest/server -- rpc-git.test.ts
  • Session whose cwd is not a git repo: composer loads, no branch footer
  • Session whose cwd is a git repo: footer shows the current branch name

Made with Cursor

Sessions in a git work tree had no branch cue next to the prompt;
probe the current HEAD and render it in the composer footer.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

React Doctor found 1 issue in 1 file · 1 warning · score 92 / 100 (Great) · full project

1 warning

src/features/chat/runtime/client-prompt-queue.ts

  • ⚠️ L0 unused-file

Reviewed by React Doctor for commit f67c77d. See inline comments for fixes.

The footer still hides when git.branch has no current name; Chat only
forwards the route-resolved cwd because vibest's RPC keys on path, not sessionRef.

Co-authored-by: Cursor <cursoragent@cursor.com>
@oxwen11
oxwen11 merged commit e5f2d4d into main Aug 29, 2026
2 of 3 checks passed
@oxwen11
oxwen11 deleted the port/pie-52-composer-branch branch August 29, 2026 17:03
oxwen11 added a commit that referenced this pull request Aug 29, 2026
Keep the reserved-height composer footer from #55; main already has #293's
hide-when-empty footer, which this PR is meant to replace.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant