Repository navigation
fix: keep narrow subagent reports inside the panel - #186919
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR lets embedded subagent reports shrink within narrow panels and updates browser coverage for containment, scrolling, and Back navigation. Example: Resize a completed subagent report panel to 260px.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current-main layout bug with a minimal, scoped change; no actionable defects remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI embeds a child conversation inside the Subagents side panel; shared conversation styles lay out its transcript, while the panel owns its available width. flowchart LR
A[Parent conversation] --> B[Subagents panel]
B --> C[Embedded child conversation]
C --> D[Shared transcript layout]
D --> E[Contained report and scrollbar]
Technical reviewBest possible solution: Merge the scoped embedded-layout override with its containment regression while retaining the shared conversation minimum and annotation inset. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the 260px panel versus 312px conversation mismatch, corroborated by the inspected baseline screenshot and reported 52px overflow; no target code was executed during this read-only review. Is this the best way to solve the issue? The existing embedded-layout owner is the right boundary: removing its inherited width floor fixes clipping without introducing another layout mechanism or changing main-chat sizing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d307b2177a0b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5, Tests +28. Total +33 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 28, 2026, 1:23 PM ET / 17:23 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Fixed: Subagent reports and their scrollbars remain inside narrowed panels. |
Keep subagent report text and its scrollbar inside narrowed panels.
What Problem This Solves
A subagent report can be cut off when its side panel is narrowed. The panel accepts a 260px width, but the embedded conversation retains the main chat’s 312px minimum, putting part of its text and its vertical scrollbar outside the visible panel.
User Impact
The child conversation reflows within the selected panel width, keeping the whole report and scrollbar accessible. Normal conversation sizing, annotation space, read-only child behavior, and the parent’s draft are preserved.
Why This Change Was Made
The embedded subagent detail already owns its layout. A scoped minimum-width override lets that child fit its container without changing the main conversation’s width policy or the shared annotation rules.
The existing narrow-report case now checks the visible panel boundary after keyboard resizing, then exercises scrolling and returning to the subagent list. Its old 24px gutter limit predates the intentional annotation reservation and did not detect a scrollport clipped by its ancestor.
Evidence
The new containment assertion fails on the unchanged base with the transcript extending 52px past the panel. The same failure was reproduced through a real guest’s completed helper report: the panel measured 260px, the transcript 312px, and rendered report text extended beyond the visible edge. Scrolling, Back, and parent-draft preservation were checked in that flow.
The containment case now passes, together with 24 other selected tests covering subagent behavior and comment lifecycle. Changed-file formatting and lint, UI styles, the translation catalog, and the affected test type graph passed on the committed tree.
The real guest journey also passed on this head: the same 260px panel contains a 260px transcript, report text stays within the visible edge, the 32px annotation inset remains, and wheel scrolling reaches the final recommendation. Returning to Subagents preserves the parent draft. Independent engineering review is clean. Hosted CI passed on this head, and the hosted evidence recheck reported no findings.
The captures use the same guest report, route, dark theme, and 1440×700 viewport. Relative timestamps advance; model-selector controls are redacted. The recording shows keyboard resizing, wheel scrolling, and Back at half speed.
Visual evidence
Keyboard resize, wheel scrolling and Back; half-speed playback
interaction-focused.mp4
Visual verification
be43bcc839b9d0e712381e62508b922c7e98931d