Skip to content

fix(ui): reclaim wasted space in narrow subagent chats - #168221

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/reduce-excessive-horizontal-padding
Oct 10, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/reduce-excessive-horizontal-padding

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Reproduced on the original code through the real bundled Control UI with a mocked Gateway and forwarded parent message: 90 px leading inset in a 480 px panel.
  • Subagents E2E: 7 passed (39.9 s including a 24.5 s production build; new regression 1.639 s).
  • Focused chat rendering and real-browser content-column tests: 193 passed, covering saved/streaming avatars, wide/narrow layouts, light/dark themes, LTR/RTL, paths, tables, and images. Three routed shards completed in 41.54 s with --maxWorkers=1.
  • UI typecheck, targeted lint/stylelint, formatting and git diff --check: passed. Independent AutoReview: no actionable P0–P2 findings.
  • check:changed stops 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.

Before After
Before: empty avatar columns squeeze the transcript After: compact insets reclaim the transcript width

Worked on by

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits October 10, 2026 05:11
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 2d65ce98-f706-49a5-850d-39097549352c
@clawsweeper

clawsweeper Bot commented Oct 10, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S labels Oct 10, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 10, 2026 05:12
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The report starts about 90 px from the panel edge, and /workspace/openclaw/personal-navigation-preferences wraps.
  • After: The report uses the available panel width, and the path fits on one line.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-level repair with directly inspected visual proof, meaningful boundary coverage, and no actionable findings; pending CI is not a completed validation result.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the changed transcript layout through the actual bundled Control UI in a 480 px Subagents panel with synthetic history and a mocked Gateway; the repaired view visibly recovers content width.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Subagent reports and long paths wrap unnecessarily because hidden avatars still reserve empty columns.
Reason: The collaborator-authored repair addresses an observable defect with a small change to the existing owner and no new settings or persistent contracts.

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

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Transcript avatar placement and layout keeps the original intent (6b12f07: This commit moved existing identity decisions into a separate module to restore lint limits while preserving rendering; it does not establish the original introduction of those decisions.)
  • Subagent avatar suppression keeps the original intent (fix(ui): restore configured agent avatars in chat #139873: The configured-avatar repair expressly retained compact/subagent suppression; the present patch retains that behavior while removing its empty layout columns.)
  • Narrow conversation insets keeps the original intent (fix(ui): keep the PWA composer inside the visible screen #161134: The existing conversation-container layout keeps short panes usable while preserving desktop/mobile geometry; the new width query uses that owner and leaves the wide reading cap intact.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 6b12f07 adds ui/src/pages/chat/components/chat-transcript-identity.ts:97 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6b12f07ba9b9; files: ui/src/pages/chat/components/chat-transcript-identity.ts)
  • Shakker: Raw commit e25a981 adds ui/src/e2e/subagents-panel.e2e.test.ts:107 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/e2e/subagents-panel.e2e.test.ts)

PR surface

Source +9, Tests +84, Docs +2. Total +95 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 11 2 +9
Tests 2 84 0 +84
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 98 3 +95

Review metrics

Metric Value Why it matters
Production versus test LOC Production +11/-2; tests +84/-0 The small shared-owner repair is supported by an application-level layout regression and an extension of existing avatar-rendering coverage.

Labels

Label changes:

  • add P2: Unnecessary gutters materially reduce readability in narrow child transcripts, with limited impact outside chat presentation.
  • 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.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Unnecessary gutters materially reduce readability in narrow child transcripts, with limited impact outside chat presentation.
  • 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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

Reviewed October 10, 2026, 1:18 AM ET / 05:18 UTC.

@roboclaw-bot
roboclaw-bot merged commit 6866e21 into main Oct 10, 2026
160 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/reduce-excessive-horizontal-padding branch October 10, 2026 05:23
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
* 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]>
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 docs Improvements or additions to documentation 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