Skip to content

fix(web): subagent bar text no longer crowds the right edge - #41909

Open
Caisusandy wants to merge 1 commit into
pingdotgg:mainfrom
Caisusandy:fix/read-only-bar-padding
Open

Caisusandy wants to merge 1 commit into
pingdotgg:mainfrom
Caisusandy:fix/read-only-bar-padding

Conversation

@Caisusandy

Copy link
Copy Markdown

Problem

When a subagent is open in its parent's right panel, the bar at the bottom has no "Open parent" button, so "Runs on its own" is the last thing in it. The text sits 8px from the right edge while the left side has 20px. Expected: the same inset on both sides.

Steps: open a subagent in the parent thread's right panel, with the panel wide enough (over 640px) to show "Runs on its own". Found while using the Windows desktop nightly.

Change

ReadOnlyComposerBar used ps-5 pe-2, and the 8px is meant for a trailing button, which has its own padding. The bar now uses 20px on both sides and keeps 8px on the right only when it holds a button (has-[>button]:pe-2).

Linked threads share this bar. They always show a button, so they look the same as before. Mobile has its own bar and is not touched.

Scope

Small fix for an obvious visual bug, so there is no issue. I found no PR that fixes this. #28839 edits the same class string for font size but keeps ps-5 pe-2, so whichever lands second gets a one-line conflict.

Verification

I rendered the real ChatView in Chromium with a temporary copy of the existing "a subagent tab shows its read-only bar" browser test (panel maximized, fake environment, not committed), on main at e632155 and with this change.

Subagent in the right panel, no button. Before: 8px on the right.

before

After: 20px on both sides.

after

Subagent's own page, with "Open parent". Unchanged. Before:

before-open-parent

After:

after-open-parent

Format, lint, typecheck, React Compiler coverage and both knip checks pass. Knip ran with KNIP_DISABLE_RAW_TRANSFER=1, because its default mode ran out of memory on my machine, with or without this change. I did not check this in the packaged desktop app.

Written and verified with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The read-only composer bar now uses symmetric horizontal padding by default. It applies reduced end padding only when it has a direct button child.

Changes: Read-only composer padding

Layer / File(s) Summary
Apply conditional end padding
apps/web/src/components/chat/ReadOnlyComposerBar.tsx
The bar uses symmetric horizontal padding by default and applies reduced end padding when it has a direct button child.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to 6b0d1

This tweaks horizontal padding on the read-only composer bar so the subagent text no longer sits against the right edge. Linked threads with a button keep their current spacing. The change is purely visual, easy to revert, and carries minimal merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the actual change: a fix to the subagent read-only bar text that was crowding the right edge. It follows the conventional commit format and matches the raw summary, which shows ReadOnl…
Description check Passed The description follows the template closely. It has Problem, Change, Scope, and Verification sections. The Problem section gives the expected behavior and reproduction steps. The Change section expla…
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.
Full details: Title check

Explanation

The title names the actual change: a fix to the subagent read-only bar text that was crowding the right edge. It follows the conventional commit format and matches the raw summary, which shows ReadOnlyComposerBar moving from ps-5 pe-2 to a symmetric 20px inset with 8px kept on the right only when a button is present. The title is specific and scoped to the fix, so it passes.

Full details: Description check

Explanation

The description follows the template closely. It has Problem, Change, Scope, and Verification sections. The Problem section gives the expected behavior and reproduction steps. The Change section explains why the 8px right inset was replaced and why linked threads and mobile are unaffected. The Scope section explains why no issue is linked and mentions a related PR that could conflict. The Verification section gives before/after screenshots, the test approach, the checks that passed, and a note on the knip workaround and the packaged app that was not checked. The description also names the model and harness used, as the template asks. The only gap is that the Scope section does not link an issue, but it gives a reason for that, which the template allows for small obvious fixes. The description is complete enough to pass.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e9c9524 and 6b0d133.

Files selected for processing: 1

  • apps/web/src/components/chat/ReadOnlyComposerBar.tsx

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

@juliusmarminge juliusmarminge added takeover:in-progress A takeover lead is working on this PR takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). takeover:blocked Takeover blocked; reason in the PR body vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants