Repository navigation
fix(macos): let browser sidebar expand beyond half width - #136168
Conversation
Allow the dashboard to use its existing compact navigation when users widen the browser sidebar. Preserve native resizing, saved widths, the default half-width opening, and the existing minimum window size. Fixes #136157
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Land-ready verification for 9ba01d6 (fixes #136157, restrictive macOS browser-width range). The shared layout minimum is the correct owner: lowering 601 to 400 points permits the existing compact dashboard, while keeping the 922×620 window minimum, 320-point browser minimum, half-width default, native splitter, saved widths and tab lifecycle. Personally rechecked the current main baseline, affected caller/restore/persist paths, AppKit SDK contracts and actual-frame regression assertions. Production +4/-4 (net 0); tests +11/-0; docs +1/-1. Exact-head CI run 33609362744, attempt 2 is completed/success; required Actions-owned Existing proof, unchanged since review: Live rules were rechecked: linear history and the CI gate, no required PR approval. ClawSweeper completed review at 2026-09-02T15:17:06.105Z on this exact head: no blocking findings and no before-merge actions. It agrees with the shared layout-owner fix and explicitly accepts the documented native gesture proof gap. The separate synthetic-fixture admission policy fix is merged; no OpenClaw source changed and the scanner was not bypassed. No bypass or rebase requested. Native proof gap remains: actual AppKit pointer dragging, full signed-app before/after screenshots and live WKWebView behavior are unverified because Parallels Tools 27 broke guest command execution and input in the pristine macOS 26.6 VM. Landing is authorized under the documented concrete-infeasibility exception. The three existing inspected synthetic Chromium screenshots and mocked send/reply flow are supplemental compact-dashboard evidence, not native proof. No operator app/Gateway state changed. |
|
@clawsweeper review The exact-head native CI and required merge gate are green, and native preparation has passed. The initial review acknowledgment has not progressed to a completed review; the native merge wrapper correctly stopped. Please review the current head. Scope, proof, and the explicit live-native gesture gap are documented in the PR and the land-ready comment above. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Bind the verified synthetic subframe rejection URI to its exact native hashes, complete source line, path, mode and observed PLAIN decoder. Preserve the scanner and classification boundary, with regression coverage and policy documentation. Unblocks admission for openclaw/openclaw#136168 after policy deployment; no OpenClaw branch or reviewer workflow changed.
|
@clawsweeper re-review The source-admission refusal is now corrected by the exact host fixture-policy repair in openclaw/clawsweeper#1355, merged as openclaw/clawsweeper@56ccb51. The approved policy entry is verified on ClawSweeper main. This OpenClaw PR remains unchanged at head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 11:17 AM ET / 15:17 UTC. ClawSweeper reviewWhat this changesThe PR lowers the dashboard pane’s minimum width so the macOS embedded browser sidebar can expand beyond half the window while retaining its saved-width behavior. Merge readiness✅ Ready for maintainer review No blocking correctness findings. This focused, maintainer-owned macOS fix repairs the layout owner that clamps restored sidebar widths; the documented native-gesture infrastructure gap does not undermine the direct AppKit frame regression coverage. Priority: P3 Review scores
Verification
How this fits togetherThe macOS dashboard opens external links in a split browser sidebar. Its layout policy constrains both panes, while the split-view controller restores and persists the browser width for later links. flowchart LR
A[External dashboard link] --> B[Browser sidebar controller]
B --> C[Saved sidebar width]
C --> D[Layout width policy]
D --> E[Compact dashboard navigation]
D --> F[Browser sidebar frame]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceDocs 0, Other +11. Total +11 across 3 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Land the shared minimum-width adjustment with the persisted-width frame assertions, preserving the existing 320-point browser minimum, half-width default, and 922-point window minimum. Do we have a high-confidence way to reproduce the issue? Yes, from source: v2026.8.2 and current main calculate browser maximum width as available split width minus the 601-point dashboard minimum, while the introduced AppKit test directly exercises the requested restored widths. Is this the best way to solve the issue? Yes. The shared layout constant is the canonical constraint consumed by both the split-view minimum and persisted-width restoration; changing only the default fraction or adding a controller-specific override would leave the clamp or duplicate policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 65e5b2e19c9d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…6168) Allow the dashboard to use its existing compact navigation when users widen the browser sidebar. Preserve native resizing, saved widths, the default half-width opening, and the existing minimum window size. Fixes openclaw#136157
Closes #136157 — macOS browser sidebar cannot expand much beyond half the default window.
What Problem This Solves
Resolves a problem where users widening the macOS dashboard's browser sidebar hit a hard stop almost immediately after its default half-width opening. In a 1240-point window, the browser opened at approximately 619.5 points but could grow only to 638 points; at the 922-point minimum window size, its available range was exactly 320 points.
Why This Change Was Made
The native split view already supports resizing and remembers the user's chosen browser width. Its dashboard minimum was held at 601 points to keep expanded navigation visible, even though the embedded dashboard already supports compact navigation below 600 points.
Lower that pane minimum to 400 points at the shared layout owner. Preserve the existing 922×620 minimum window, 320-point browser minimum, half-width default, native divider handling, tab lifecycle, and width persistence. There is no additional drag implementation, dependency, configuration option, migration, or protocol change.
User Impact
Users can give a web page more than half of the normal app window. The dashboard switches to its existing compact navigation when necessary instead of blocking the browser's expansion. Previous browser width preferences continue to work.
Evidence
DashboardWindow.swiftand requesting an 800-point browser in a 1240-point split returned 638 before and 800 after; the before probe exited 1 and the after probe exited 0.node scripts/prepare-apple-mermaid.mjsfollowed byxcrun swift build --package-path apps/macos --product OpenClaw -c debug --build-system native— passed. The initial build identified missing generated Mermaid resources; preparing them resolved it.node scripts/check-changed.mjs -- apps/macos/Sources/OpenClaw/DashboardWindow.swift apps/macos/Tests/OpenClawIPCTests/DashboardWindowSmokeTests.swift docs/platforms/macos.md— passed, including Swift lint/format, all selected guards, and 1,067 tests.git diff --check— passed.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/native-nav-responsive-layout.e2e.test.ts).9ba01d6c7b1c308e7b41eac11ba6f43e0fd0393d: https://github.com/openclaw/openclaw/actions/runs/33609362744/attempts/2. Both native release and test phases andopenclaw/ci-gatesucceeded. The app's Swift Testing run passed 1,913 tests, with 2 additional named-profile isolation tests. The changed sidebar restoration test and sibling tab lifecycle test are explicitly present and passing in the native job log. Shared OpenClawKit's Swift Testing run also passed 1,576 tests; its separate XCTest portion reports one existing skip.Production LOC: +4/-4 (net 0). Tests: +11/-0. Docs: +1/-1.
Visual and live-proof gap
A pristine macOS 26.6 VM was restored for full signed-app gesture proof. Its required Parallels Tools update to 27.0.0 broke guest command execution (
PrlJob_GetRetCode: Invalid argument), including a trivial echo command; VM-scoped input also did not visibly take effect. A restart did not restore execution. The VM was restored again and left stopped, and the infrastructure failure was recorded separately. No operator Gateway or saved app state was modified.Actual pointer dragging and full native-app before/after screenshots are therefore not verified. The source-executed policy probe and AppKit regression tests must not be read as live gesture proof.
The attached screenshots are supplemental mocked Gateway + native-web-chrome simulation in Chromium, showing the dashboard at 619 points, at 400 points, and with compact navigation open. They prove the narrower dashboard remains usable, not native splitter input, WKWebView behavior, or native titlebar geometry. The baseline simulation has overlapping titlebar/brand controls and is not evidence about actual native titlebar placement. Every attached image was inspected and contains synthetic data only.