You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(composer): drop the folder and branch strip under the desktop message box - #4983
UI trim audit item #9: on a desktop, a line under the chat message box always named the pane's folder and branch (/home/demo/checkout-api · main). The status bar right under it already shows the PC, workspace and branch, and the sidebar shows the workspace and its branch, so the line repeated them and made the composer taller. A phone never drew it.
Removed with everything only it used:
Composer.tsx: the strip, its fit-the-path layout effect and the cwd / branch / worktreeRepo props; Folder and GitBranch icons.
PaneTerminal.tsx: the usePaneBranch read that only fed the strip (the status bar keeps its own), the worktreeRepo prop; App.tsx no longer computes it.
PaneTerminal's workspaceId prop, read only for the strip's branch.
The strip's sentence in docs/guide.md.
src/lib/composerStrip.ts and its test, the .composer-strip* styles, the prompt card's --prompt-card-strip budget, the "Working folder" / "Worktree" strings (ja, ko, zh), its DESIGN.md entry, the THIRD_PARTY_NOTICES mention and its ci-test-timings line.
This follows the minimal-composer rule (Codex and Claude desktop apps keep the box itself free of context lines). No server or HTTP/WS contract change.
Known trade-off: in desktop inbox mode (no status bar, inbox list instead of the sidebar) and in a 641-768px window with a mouse (no status bar below 769px), the branch is no longer shown anywhere on screen; the folder stays in the pane's menu.
Screens (demo, light)
Before (1440)
After (1440)
Before (390, unchanged)
After (390)
Chat end-follow fix (found by this change)
With the composer 29px shorter, chat-reading-position-demo-regression (scenario workspace) left a newly shown chat 16px above its end. Cause: while @legendapp/list pads the transcript's end to hold rows, followMeasured took the list's own contentLength as the end, and the list measures its header (Earlier messages) and footer later than its rows without reporting an item size change, so nothing followed again once the padding went. followMeasured now goes to the farther of the list's length and the scroller's drawn end less the list's inline padding (unpaddedScrollHeight). Measured: 5004/618/4370 before, at the end after.
Checks
chat-reading-position-demo-regression (all 7 scenarios, twice), chat-math-demo-regression, pane-paging-demo-regression: PASS; bun test src/components/ChatView src/components/ChatTimeline: pass.
bun run check fast: green (30182 pass).
Reviews: Codex (via axwith) CLEAR; omo gate found the strip's sentence left in docs/guide.md and PaneTerminal's now-unread workspaceId prop, both removed in the follow-up commit. chat-size-regression fails identically on origin/main in this environment (phone terminal resize wait), so it is not this change.
Type check of the changed files: clean. bun test src/components/Composer src/components/PaneTerminal src/components/PromptCard src/conventions.test.ts src/lib/i18n scripts/changelog-fold.test.ts: 278 pass.
Auto incremental reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Changes
Removed the folder-and-branch line beneath the desktop message box. Workspace and branch information remains available in the status bar and sidebar.
Documentation
Updated the Compose guide and design documentation to reflect the change and no longer describe the removed context line.
The composer no longer displays a folder-and-branch context strip. The change removes the data flow, helper, styles, and related tests, translations, and documentation. Workspace and branch information remain available in the status bar and sidebar, as stated in the changelog.
Changes: Composer context strip removal
Layer / File(s)
Summary
Remove composer context inputs and rendering src/lib/composerStrip.ts, src/components/Composer.tsx, src/components/PaneTerminal.tsx, src/App.tsx
Composer no longer receives or renders folder, repository, or branch context. PaneTerminal retains workspaceLabel. The strip helper and related props are removed.
The composer and prompt-card styles no longer reserve space for the strip. Its tests, timing entry, and Japanese, Korean, and Chinese translations are removed.
Update documentation and attribution DESIGN.md, docs/guide.md, changelog.d/composer-folder-branch-strip-removed.md, THIRD_PARTY_NOTICES.md
The design and Compose documentation no longer describe the strip. The changelog records its removal, and the T3 Code attribution lists the composer files instead of the deleted helper.
This removes the desktop composer's folder-and-branch strip, and the workspace and branch remain visible in the status bar and sidebar. The change is a localized UI removal with reported passing tests, and no merge-blocking risk is evident.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: removing the folder-and-branch strip under the desktop composer. It matches the changeset, which removes the strip component, its props, styles, strings, and tests. Th…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description states what changed (removing the desktop composer folder/branch strip and its dependent code, props, styles, strings, docs, and tests) and why (duplicated status bar/sidebar context, …
Full details: Title check
Explanation
The title names the main change: removing the folder-and-branch strip under the desktop composer. It matches the changeset, which removes the strip component, its props, styles, strings, and tests. The title is concise and specific.
Full details: Description check
Explanation
The description states what changed (removing the desktop composer folder/branch strip and its dependent code, props, styles, strings, docs, and tests) and why (duplicated status bar/sidebar context, taller composer). It also records a known trade-off where the branch is no longer visible in desktop inbox mode and in the 641-768px window. The Validation content covers targeted bun test runs, browser demo regressions, a type check, and bun run check fast with results. It does not explicitly list skipped checks or name a linked issue. The template asks for a linked issue for features; this is a removal, so the omission is minor. The Chat end-follow fix section is extra content, but it is explained and tied to this change. The description is mostly complete against the template.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
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.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review.
Merged through pr-merge at head 77e2ff03e. Seen before the merge was asked for: required checks green, no unresolved thread, no conflict, no hold, main not red, no release in progress. CodeRabbit said it did not review (a limit or a skip) since this head.
main had moved since the checks of f9894d824: pr-merge --update merged it in (0f5ec7c10), and every required check was green at this head.
It waited in the merge queue behind #4980, whose change overlaps it, before it was updated.
Reviews: Codex via axwith CLEAR; omo gate BLOCK (guide.md leftover, unread prop) fixed in aed7df3; the change exposed a chat end-follow gap (chat-reading-position), fixed at the cause in fe09f01 and verified by that regression twice; check fast green locally; ui-contexts flake rerun; owner OK for the ui-trim audit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
UI trim audit item #9: on a desktop, a line under the chat message box always named the pane's folder and branch (
/home/demo/checkout-api · main). The status bar right under it already shows the PC, workspace and branch, and the sidebar shows the workspace and its branch, so the line repeated them and made the composer taller. A phone never drew it.Removed with everything only it used:
Composer.tsx: the strip, its fit-the-path layout effect and thecwd/branch/worktreeRepoprops;FolderandGitBranchicons.PaneTerminal.tsx: theusePaneBranchread that only fed the strip (the status bar keeps its own), theworktreeRepoprop;App.tsxno longer computes it.PaneTerminal'sworkspaceIdprop, read only for the strip's branch.src/lib/composerStrip.tsand its test, the.composer-strip*styles, the prompt card's--prompt-card-stripbudget, the "Working folder" / "Worktree" strings (ja, ko, zh), its DESIGN.md entry, the THIRD_PARTY_NOTICES mention and its ci-test-timings line.This follows the minimal-composer rule (Codex and Claude desktop apps keep the box itself free of context lines). No server or HTTP/WS contract change.
Known trade-off: in desktop inbox mode (no status bar, inbox list instead of the sidebar) and in a 641-768px window with a mouse (no status bar below 769px), the branch is no longer shown anywhere on screen; the folder stays in the pane's menu.
Screens (demo, light)
Chat end-follow fix (found by this change)
With the composer 29px shorter,
chat-reading-position-demo-regression(scenario workspace) left a newly shown chat 16px above its end. Cause: while @legendapp/list pads the transcript's end to hold rows,followMeasuredtook the list's owncontentLengthas the end, and the list measures its header (Earlier messages) and footer later than its rows without reporting an item size change, so nothing followed again once the padding went.followMeasurednow goes to the farther of the list's length and the scroller's drawn end less the list's inline padding (unpaddedScrollHeight). Measured: 5004/618/4370 before, at the end after.Checks
chat-reading-position-demo-regression(all 7 scenarios, twice),chat-math-demo-regression,pane-paging-demo-regression: PASS;bun test src/components/ChatView src/components/ChatTimeline: pass.bun run check fast: green (30182 pass).workspaceIdprop, both removed in the follow-up commit.chat-size-regressionfails identically on origin/main in this environment (phone terminal resize wait), so it is not this change.bun test src/components/Composer src/components/PaneTerminal src/components/PromptCard src/conventions.test.ts src/lib/i18n scripts/changelog-fold.test.ts: 278 pass.