Skip to content

fix(ui): use available chat space for new browser panes - #152575

Merged
steipete merged 2 commits into
mainfrom
codex/browser-pane-default-width
Sep 19, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/browser-pane-default-width

Conversation

@steipete

@steipete steipete commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Browser side panels start at 480 pixels even when a wide task pane leaves large unused margins around the conversation.

User Impact

New Browser panels use the available task width and rendered chat column across web, macOS, and Tauri. Saved widths and manual divider adjustments remain unchanged. In the 2048-pixel example below, the browser grows from 480 to 980 pixels while the chat column keeps its width.

Why This Change Was Made

The shared Control UI owns panel geometry; the native hosts follow its measured browser bounds. Choose the browser width once the pane is measurable, defer that choice for narrow or bottom-docked layouts, and retain the result through reloads. The calculation also reserves the divider's actual 6-pixel width.

Evidence

  • 168 focused tests passed, including layout persistence, dashboard presentation, and native-browser bridge coverage.
  • Eight browser and side-panel flows passed, covering 1200/1440/2048-pixel viewports, both themes, manual resizing, reloads, and narrow-screen round trips. The original source fails the two wide-pane sizing regressions. The existing empty-panel drag now verifies shrinking within the width limit; its earlier growth check and persistence assertions remain intact.
  • Core-test and UI typechecking, changed-file guards, formatting, lint, and stylesheet checks passed. Independent review completed with no unresolved actionable findings.
  • The initial CI run exposed that obsolete second-growth assumption and an unrelated Vitest worker-shutdown timeout after all 667 storage-shard tests passed; no storage code changed. The updated head passed full CI, including both previously failing jobs.
  • Inspected synthetic screenshots and a live Chrome check verify the shared UI. Native app builds were not launched; their existing rectangle-forwarding contract is covered by source inspection and bridge tests.
Before After
Browser pane before: fixed 480-pixel width Browser pane after: 980 pixels while preserving chat width

@clawsweeper

clawsweeper Bot commented Sep 19, 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 maintainer Maintainer-authored PR labels Sep 19, 2026
@steipete
steipete marked this pull request as ready for review September 19, 2026 05:47
@steipete steipete self-assigned this Sep 19, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 19, 2026
@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 19, 2026, 2:34 AM ET / 06:34 UTC (Revision 3).

ClawSweeper review

What this changes

New Browser side panels reclaim unused conversation margins while preserving saved widths and manual resizing, with regression coverage and documentation.

Merge readiness

✅ Ready for maintainer review

This remains a useful, distinct improvement absent from inspected main and the latest release. No actionable correctness or security findings remain; the supplied visual evidence supports the change.

Priority: P3
Reviewed head: 9c45d7406f102354a2f254fab002c564248cc55e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with convincing visual proof, compatibility coverage, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before-and-after Control UI screenshots directly demonstrate the changed layout owner reclaiming chat margins when Browser opens. The body reports Chrome verification, and source coverage checks persistence and responsive behavior; native application execution is explicitly unverified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before-and-after Control UI screenshots directly demonstrate the changed layout owner reclaiming chat margins when Browser opens. The body reports Chrome verification, and source coverage checks persistence and responsive behavior; native application execution is explicitly unverified.
Evidence reviewed 9 items Introduced change and review continuity: Reviewed the pinned merge-base-to-head changes. Production layout code is unchanged from the earlier reviewed head; the follow-up changes the empty-panel resize regression to shrink within the existing limit. Prior completed reviews recorded no findings. The stale test merge was not used to attribute base-branch changes.
Bounded one-time sizing: Initialization requires a pending new column, visible Browser side panel, conversation main view, measurable dimensions, and a sufficiently wide non-bottom layout. It consumes the marker and reuses existing width limits.
Saved-layout compatibility: Legacy layouts do not acquire the pending marker; manual horizontal resizing removes it. Geometry-only persistence carries its settled value without replacing saved panel selections or dashboard presentation. Tests explicitly cover legacy widths, manual widths, deferred sizing, reloads, and narrow-screen round trips.
Findings None None.
Security None None.

How this fits together

The Control UI owns each task’s chat and side-panel geometry. It combines rendered dimensions with saved layout preferences, then supplies the resulting browser bounds to web and native presentation.

flowchart TD
  A[Open Browser panel] --> B[Saved layout preferences]
  B --> C{New width pending?}
  C -->|Yes| D[Measure task and chat widths]
  C -->|No| E[Keep chosen width]
  D --> F[Fit within pane limits]
  F --> G[Render and persist layout]
  E --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +70, Tests +97, Docs +1. Total +168 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 7 74 4 +70
Tests 3 99 2 +97
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 174 6 +168

Review metrics

Metric Value Why it matters
Production versus test growth Production +74/-4; tests +99/-2 Production growth implements measured initialization and persistence; tests protect sizing and retained user choices.
Preference compatibility 1 optional stored marker; 0 new user settings The marker distinguishes newly created columns without opting existing saved layouts into the new default.

Technical review

Best possible solution:

Keep adaptive sizing in the existing layout owner, applying it once to new columns while retaining saved and manually chosen dimensions.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a broken-behavior reproduction: this improves an existing fixed-width default. Current source and the inspected comparison establish the unused-space problem.

Is this the best way to solve the issue?

Yes. Measuring the existing pane and consuming a one-time marker avoids a competing layout policy or repeated overrides of user preferences.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5a2bc22ce933.

Labels

Label justifications:

  • P3: This is a bounded layout ergonomics improvement with preserved user-selected widths.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before-and-after Control UI screenshots directly demonstrate the changed layout owner reclaiming chat margins when Browser opens. The body reports Chrome verification, and source coverage checks persistence and responsive behavior; native application execution is explicitly unverified.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before-and-after Control UI screenshots directly demonstrate the changed layout owner reclaiming chat margins when Browser opens. The body reports Chrome verification, and source coverage checks persistence and responsive behavior; native application execution is explicitly unverified.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before-and-after Control UI screenshots directly demonstrate the changed layout owner reclaiming chat margins when Browser opens. The body reports Chrome verification, and source coverage checks persistence and responsive behavior; native application execution is explicitly unverified.

Evidence

What I checked:

  • Introduced change and review continuity: Reviewed the pinned merge-base-to-head changes. Production layout code is unchanged from the earlier reviewed head; the follow-up changes the empty-panel resize regression to shrink within the existing limit. Prior completed reviews recorded no findings. The stale test merge was not used to attribute base-branch changes. (ui/src/e2e/chat-rail-columns.e2e.test.ts:852, 9c45d7406f10)
  • Bounded one-time sizing: Initialization requires a pending new column, visible Browser side panel, conversation main view, measurable dimensions, and a sufficiently wide non-bottom layout. It consumes the marker and reuses existing width limits. (ui/src/pages/chat/sidebar-layout-geometry.ts:87, 9c45d7406f10)
  • Saved-layout compatibility: Legacy layouts do not acquire the pending marker; manual horizontal resizing removes it. Geometry-only persistence carries its settled value without replacing saved panel selections or dashboard presentation. Tests explicitly cover legacy widths, manual widths, deferred sizing, reloads, and narrow-screen round trips. (ui/src/pages/chat/sidebar-layout-persistence.ts:43, 9c45d7406f10)
  • Inspected before-and-after proof: Both downloaded PR images were inspected successfully. The 2048-pixel screenshots visibly show the Browser widening from approximately 480 to 980 pixels while retaining the composer width. The captured body also reports a live Chrome check and focused passing validation. These images demonstrate shared UI geometry, not native application execution. (9c45d7406f10)
  • Native presentation boundary: The unchanged native presentation owner observes the rendered browser stage and forwards its bounding rectangle. The PR does not change native transport, browser authority, or navigation behavior; native builds were not launched according to the supplied evidence. (ui/src/components/browser/browser-panel-native-presentation.ts:160, 9c45d7406f10)
  • Still necessary on main and release: Inspected main retains the 480-pixel column default without browser initialization. Both main and v2026.9.5 retain the earlier geometry module without this adaptive sizing behavior. (ui/src/pages/chat/sidebar-layout-geometry.ts:18, ec9c1a13db89)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-19T05:54:19.326Z sha d7ccbea :: needs maintainer review before merge. :: none
  • reviewed 2026-09-19T06:14:59.331Z sha 9c45d74 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit ec4b63b into main Sep 19, 2026
165 of 167 checks passed
@steipete
steipete deleted the codex/browser-pane-default-width branch September 19, 2026 06:55
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 20, 2026
)

* fix(ui): use available chat space for new browser panes

* test(ui): keep empty panel resize proof within its width limit
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary 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