Repository navigation
fix(ui): reclaim wasted space in narrow subagent chats - #168221
Conversation
Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 2d65ce98-f706-49a5-850d-39097549352c
|
🦞👀 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 removes empty avatar gutters and reduces horizontal insets in narrow avatar-free chat transcripts. Example: Inspect a subagent transcript in a 480 px panel inside a 1440 × 1000 browser window.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a concrete layout defect still present on current main, with no actionable correctness or security findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI renders Gateway session history through the shared transcript renderer, which chooses avatar placement and applies conversation-container layout rules. flowchart LR
A[Gateway session history] --> B[Subagents panel]
B --> C[Shared chat renderer]
C --> D[Avatar placement]
D --> E[Transcript layout class]
E --> F[Conversation container styles]
F --> G[Visible child transcript]
Technical reviewBest possible solution: Use the final avatar placement to select gutter-free layout and apply compact insets through the existing conversation container. Do we have a high-confidence way to reproduce the issue? Current-main source shows the mismatched avatar and layout decisions, and the supplied before screenshot demonstrates the resulting narrow content column; no runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? The patch repairs the existing shared layout decision directly, preserves avatar suppression and wide reading limits, and introduces no competing owner or configuration surface. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 10985c079d80. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +9, Tests +84, Docs +2. Total +95 across 5 files. Added test files: 0. View PR surface stats
Review metrics
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 Reviewed October 10, 2026, 1:18 AM ET / 05:18 UTC. |
|
Merged via squash.
|
* fix(ui): reclaim wasted space in narrow subagent chats Co-authored-by: steipete <[email protected]> * fix(ui): reclaim wasted space in narrow subagent chats Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 2d65ce98-f706-49a5-850d-39097549352c --------- Co-authored-by: steipete <[email protected]>
What Problem This Solves
Fixes excessive left/right whitespace in narrow Subagents transcripts, where hidden avatars still reserved empty columns.
User Impact
Subagent reports and long paths use the available panel width instead of wrapping inside a needlessly narrow column. Avatar-free panes up to 560 px wide use a 12 px reading inset; full-width chats retain their existing reading-width limit. No configuration or migration changes.
Why This Change Was Made
Layout now follows the final avatar placement rather than the pre-subagent default. A container query responds to the actual conversation width, not the desktop viewport.
Evidence
--maxWorkers=1.git diff --check: passed. Independent AutoReview: no actionable P0–P2 findings.check:changedstops at a pre-existing environment-variable budget error (456 names, budget 455). Reproduced against the unchanged staged baseline before staging this patch. This change adds no environment variables; the already-owned baseline repair was notified. Later checks in that aggregate command were not run; the scoped UI checks above were run separately.Before / after
Actual bundled Control UI, synthetic transcript, dark theme; the same 480 px Subagents panel inside a 1440 × 1000 viewport.
Worked on by
Work sessions
View the OpenClaw team session