Skip to content

fix: keep narrow subagent reports inside the panel - #186919

Merged
shakkernerd merged 1 commit into
mainfrom
subagent-panel-readable-width
Oct 28, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
subagent-panel-readable-width

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

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

Open preview

Before After
The report extends past the narrow panel and its right-hand text is clipped The report wraps inside the panel and its full recommendation remains readable

Keyboard resize, wheel scrolling and Back; half-speed playback

interaction-focused.mp4

Visual verification

  • Baseline: c57ad9a
  • Exact head: be43bcc839b9d0e712381e62508b922c7e98931d
  • Scenario: Open a completed helper report, resize its panel with End, scroll to the final recommendation, and return to Subagents.
  • Runtime/build: Control UI be43bcc (source preview), unchanged Gateway 09a5821; real guest and the same completed helper report
  • Panel width: 260px before and after
  • Transcript width: 312px → 260px; 52px outside the panel → 0px
  • Annotation inset: 32px preserved
  • Scroll and navigation: Wheel 0 → 4354px; final recommendation, Back, and parent draft verified
  • Same 1440×700 dark viewport, route, and durable report; relative timestamps advance.
  • Native keyboard resize and wheel input; no injected layout changes.
  • Exact committed head and served CSS qualified; no browser page errors.
  • Model-selector controls are redacted; original recordings retained.

@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The transcript remains 312px wide, clipping 52px of content and its scrollbar.
  • After: The transcript fits the 260px panel while preserving annotation spacing.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A minimal layout repair with direct visual evidence, a meaningful browser regression, and successful exact-head checks; no persisted format or preference changes require migration.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Control UI screenshots show the same real-guest report becoming contained at 260px; exact-head runtime notes record scrolling to the recommendation and returning with the parent draft preserved, resolving the prior capture request.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Narrowing a Subagents panel cuts off report text and moves its vertical scrollbar outside the visible panel.
Reason: The maintainer-authored direction restores readable reports through a narrowly scoped layout repair.

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
Reviewed head: be43bcc839b9d0e712381e62508b922c7e98931d

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Shakker: Raw commit e25a981 adds ui/src/pages/chat/components/chat-subagents-panel.css:10 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e25a98150544; files: ui/src/pages/chat/components/chat-subagents-panel.css)
  • Vyctor H. Brzezowski: Raw commit dafa0f3 adds ui/src/e2e/subagents-panel.e2e.test.ts:352 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dafa0f348ad3; files: ui/src/e2e/subagents-panel.e2e.test.ts)

PR surface

Source +5, Tests +28. Total +33 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 5 0 +5
Tests 1 40 12 +28
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 45 12 +33

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: Narrow Subagents panels clip report text and the scrollbar, with impact limited to that panel layout.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-28T17:13:58.657Z sha be43bcc :: needs maintainer review before merge. :: none

Reviewed October 28, 2026, 1:23 PM ET / 17:23 UTC (Revision 2).

@shakkernerd

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 28, 2026
@shakkernerd
shakkernerd merged commit b9251d1 into main Oct 28, 2026
123 checks passed
@shakkernerd
shakkernerd deleted the subagent-panel-readable-width branch October 28, 2026 17:55
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: Subagent reports and their scrollbars remain inside narrowed panels.

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

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant