Skip to content

refactor(composer): drop the folder and branch strip under the desktop message box - #4983

Merged
devswha merged 5 commits into
mainfrom
ui-trim-composer-strip
Nov 28, 2026
Merged

devswha merged 5 commits into
mainfrom
ui-trim-composer-strip

Conversation

@devswha

@devswha devswha commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

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 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 after
Before (390, unchanged) After (390)
before phone after phone

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.
  • Browser: composer-fit, prompt-dock, prompt-card-timing, chat-greeting, plan-chip demo regressions PASS.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

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.

Run configuration

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.
Remove strip styling and supporting code
src/components/Composer.css, src/components/PromptCard.css, src/lib/composerStrip.test.ts, scripts/ci-test-timings.json, src/lib/i18n/composer.*.ts
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.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Refactor

Suggested reviewers: danipulok, tung-dnt

Merge Risk: Minimal · previous review aed7d

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed 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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7b3eddb and aed7df3.

Files selected for processing: 15

  • DESIGN.md
  • THIRD_PARTY_NOTICES.md
  • changelog.d/composer-folder-branch-strip-removed.md
  • docs/guide.md
  • scripts/ci-test-timings.json
  • src/App.tsx
  • src/components/Composer.css
  • src/components/Composer.tsx
  • src/components/PaneTerminal.tsx
  • src/components/PromptCard.css
  • src/lib/composerStrip.test.ts
  • src/lib/composerStrip.ts
  • src/lib/i18n/composer.ja.ts
  • src/lib/i18n/composer.ko.ts
  • src/lib/i18n/composer.zh.ts
Files with no reviewable changes: 10

  • DESIGN.md
  • scripts/ci-test-timings.json
  • src/App.tsx
  • src/components/Composer.css
  • src/components/PaneTerminal.tsx
  • src/lib/composerStrip.test.ts
  • src/lib/composerStrip.ts
  • src/lib/i18n/composer.ja.ts
  • src/lib/i18n/composer.ko.ts
  • src/lib/i18n/composer.zh.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review.

@devswha
devswha merged commit 6c70790 into main Nov 28, 2026
16 checks passed
@devswha

devswha commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

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.

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