Skip to content

feat(composer): name the branch and mark a worktree in the strip under the message box - #991

Merged
devswha merged 2 commits into
mainfrom
feat/composer-strip-branch
Oct 13, 2026
Merged

devswha merged 2 commits into
mainfrom
feat/composer-strip-branch

Conversation

@devswha

@devswha devswha commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Change

The strip under the message box (#951) had a place for the branch that nothing filled: Composer takes branch, and PaneTerminal passed only cwd.

  • The strip now names the workspace checkout's branch at its right end. lib/paneBranch.ts is a small store the sidebar's useWorktreeBranches publishes into and PaneTerminal reads (usePaneBranch), so the roster stays the only reader of the git inventory and no second poll is added. A detached checkout reads "Detached HEAD".
  • A linked worktree is marked as one: its folder takes lucide FolderGit2 and the word Worktree after its name, from workspace.worktree.is_linked_worktree in the snapshot.

It only names them; nothing in the strip is pressed. A repository with no linked worktree open has no branch there (the roster does not inventory it), and a PC whose roster is folded names the folder alone.

This touches the same lines of Composer.tsx, the guide, DESIGN.md, src/AGENTS.md and the language files as #988; whichever merges second needs a rebase.

Validation

  • bun run check fast on macOS arm64, Bun 1.4.0: generated types, typecheck and build ok. Unit tests: every file passes except server/voice.test.ts ("streams deltas and the done text from a split SSE answer"), which fails the same way on main a4b2295 on this Mac. portal, plugin, install-star and ci-setup tests failed in a run that shared the PC with another full suite; each passes alone here and on main.
  • New unit test src/lib/paneBranch.test.ts; one new string, translated in the four language files.
  • A one-off browser script against the test herdr session, not committed: a repository workspace and a worktree of it, each running Codex. The worktree's strip read login-form, Worktree, feature/login-form; the repository's read test-project, main, no mark.
  • Not run locally: the integration and browser lanes.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4345b2f9-38d7-49c9-afa9-c59f139be30f
📥 Commits

Reviewing files that changed from the base of the PR and between 42c6332 and ed5fb71.

📒 Files selected for processing: 16
  • DESIGN.md
  • changelog.d/composer-strip-branch.md
  • docs/guide.md
  • src/AGENTS.md
  • src/App.tsx
  • src/components/Composer.css
  • src/components/Composer.tsx
  • src/components/PaneTerminal.tsx
  • src/components/Sidebar.tsx
  • src/lib/i18n.ja.ts
  • src/lib/i18n.ko.ts
  • src/lib/i18n.tr.ts
  • src/lib/i18n.zh.ts
  • src/lib/paneBranch.test.ts
  • src/lib/paneBranch.ts
  • src/lib/useWorktreeBranches.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

# Conflicts:
#	docs/guide.md
#	src/AGENTS.md
@devswha
devswha merged commit 8dc1774 into main Oct 13, 2026
15 of 17 checks passed
@devswha
devswha deleted the feat/composer-strip-branch branch October 13, 2026 22:43
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