Repository navigation
fix(ui): use available chat space for new browser panes - #152575
Conversation
|
🦞👀 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. Reviewed September 19, 2026, 2:34 AM ET / 06:34 UTC (Revision 3). ClawSweeper reviewWhat this changesNew 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 Review scores
Verification
How this fits togetherThe 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +70, Tests +97, Docs +1. Total +168 across 11 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
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