Repository navigation
improve(ui): refine new-session context pickers - #197820
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 changes before merge. What this changesThis PR moves New Session placement controls below the composer and restyles their pickers. Example: Open New Session at 1440×900 with project openclaw and branch main selected.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep this maintainer-authored draft open. The tray direction is supported by visual evidence, but two introduced layout regressions need correction before merge. Priority: P2 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThe Control UI renders placement choices from the existing draft-place owner; picker selections update that owner before session creation. flowchart TD
A[New Session page] --> B[Composer and context tray]
B --> C[Shared session picker]
C --> D[Machine project and checkout content]
D --> E[Draft place owner]
E --> F[Session creation]
Technical reviewBest possible solution: Keep the existing placement and overlay owners, align tray positioning with the docked-layout breakpoint, and let specialized path forms expand onto their own row. Do we have a high-confidence way to reproduce the issue? Source establishes both failing paths: an 844×390 landscape viewport matches docked and desktop-tray rules simultaneously, and a 390px device-folder form retains a nonshrinking full-row flex basis inside the new non-wrapping row; no target code was run. Is this the best way to solve the issue? Reusing the existing composer, placement owner, shared picker, and scroll observer is appropriate; the smallest complete implementation also preserves viewport containment and full-width specialized forms. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c827f9781571. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +441, Tests +22. Total +463 across 8 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label 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 November 12, 2026, 11:25 AM ET / 16:25 UTC. |
Fit the device-folder form beneath the compact controls, connect active-descendant ownership, avoid option scans for ordinary typing, and retain behavioral coverage without freezing the replaced layout. Co-authored-by: vyctorbrzezowski <[email protected]>
Project visible height from the existing viewport owner, let the compact editor yield to its controls, and reconcile current-main types and behavioral test consumers without changing the approved tray design. Co-authored-by: vyctorbrzezowski <[email protected]>
Group machine, project and checkout controls into compact searchable menus. Preserve native keyboard ownership, device-folder containment, and usable composer controls while the software keyboard is open. Co-authored-by: vyctorbrzezowski <[email protected]>
openclaw#197820 removed the project search status line and the browser list loading line from the new-session pickers, but their styles stayed. Removing them pays for the narrow dashboard layout in the CSS budget.
What Problem This Solves
New-session machine, project, and checkout controls need to stay easy to reach without taking over the composer when opened.
User Impact
The controls sit together below the composer on desktop and above it on phones. Each opens a compact menu with searchable choices, usable folder navigation, and concise checkout fields.
Why This Change Was Made
Use the shared native Popover for anchoring, focus, and dismissal. Keep the refined grouped lists and pinned Browse folders action, remove the expanding tray panel, and reserve Back for actual folder navigation. Checkout keeps editable branch suggestions, optional naming, validation, and unavailable-state messages.
Evidence
props.kindreactivity warning.Screenshots show the native Control UI with synthetic Gateway fixtures. After captures are from published commit
ec5a50877fa2352c1c4decd70de5e659beecdfe9; the original native before captures are retained. The new phone captures use mobile/touch emulation with a coarse pointer; worktree inputs retain a 40px height.Light-theme checkout and folder navigation:
Maintainer validation
The compact tray and popover design is preserved. A device-folder form could be taller than its fixed row at desktop and landscape widths, leaving the input partly behind the composer. That row now wraps and sizes to its content only when the form is present; the phone layout is unchanged.
Search keeps its native action buttons and keyboard focus. The active button is explicitly owned by the searchbox for accessible focus, and ordinary typing no longer scans or sorts all options. The existing selection and IME paths remain intact.
Validation on the repaired candidate:
These captures use the real Control UI with synthetic Gateway data. The separate isolated real-Gateway check also passed: project search and keyboard selection led to a real
sessions.create, and the result plus a subsequent project/workspace-filtered read confirmed the correct project and directory. The/statuscommand completed successfully with zero model-provider calls. Current-head CI is still in progress. Existing adjacent test fixtures emit Solid diagnostics; the actual UI reproduction reported no page errors.Current-main integration and keyboard viewport
The final repair is published at
9084f98831f9d3c9ef55da8dc266311a1264d714. With a long draft and the three phone control rows, the composer could extend 7 px past the keyboard's visible viewport. The existing viewport owner now exposes its visible height separately from its panned layout extent; the compact composer yields available space to the tray and Send button. No extra observer, timer, or application state was added, and a roomier viewport still permits the editor to grow.The integrated build also uses the existing Solid element type for the new composer slot and updates only affected test consumers of the approved picker layout. Selection, creation payloads, validation, focus, composition and viewport containment remain covered; obsolete exact row-count and cosmetic geometry checks were removed.
The pair below is the actual Control UI with synthetic test data and a simulated keyboard viewport, cropped to its 380 px visible area. It is browser evidence, not a physical iPhone capture.
Full CI on the final head is still pending. The approved size-budget exception is separate from the passing behavioral checks above.