Repository navigation
fix(ui): select new sessions immediately while naming - #172863
Conversation
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 51730352-a3b2-4b6b-a3d4-131040698246
|
🦞👀 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. |
Co-authored-by: steipete <[email protected]>
Integrates the existing composer directive contract fix required by check-lint-core-2. Co-authored-by: steipete <[email protected]>
|
Codex review: needs changes before merge. What this changesThis PR immediately selects a provisional session and shows placeholders while automatic naming is pending. Example: Start a session with “Review release readiness and outstanding fixes” while “Weekly planning” is selected.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this useful maintainer-authored PR open; one changed test mock causes a required ratchet failure. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI creation handoff supplies provisional presentation, while the Gateway naming registry supplies runtime status through session rows and change events. flowchart LR
A[New session composer] --> B[Creation handoff]
B --> C[Provisional sidebar row]
B --> D[Gateway session creation]
D --> E[Existing naming registry]
E --> F[Session rows and events]
F --> G[Sidebar and chat header]
Technical reviewBest possible solution: Retain the existing handoff and naming owners, and repair the changed isolated mock without expanding the baseline. Do we have a high-confidence way to reproduce the issue? Current-main source retains the admitted selection during provisional creation, matching the inspected before screenshot; no target code was executed during this review. Is this the best way to solve the issue? The approach fits the existing ownership boundaries: provisional presentation stays outside authoritative membership, and naming status derives from the existing generation-scoped registry. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 148a19f69f2c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +175, Tests +364, Docs +7. Total +546 across 37 files. Added test files: 3. View PR surface stats
LabelsLabel 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 October 15, 2026, 3:08 AM ET / 07:08 UTC. |
Keep the connection-validated handoff through both navigation-key and draft/focus hint cleanup. Reject it after reconnect. Co-authored-by: steipete <[email protected]>
Preserve the current hidden-roster guard and move provisional-session lineage suppression into the new session data owner. Co-authored-by: steipete <[email protected]>
Reject only the displayed unadmitted key at the lineage load boundary; leave the shared data controller unchanged. Co-authored-by: steipete <[email protected]>
Integrate verified Apple cache context fix 68fed4a. No conflicts; title projection regressions and UI/scripts typechecks pass on the integrated tree. Co-authored-by: steipete <[email protected]>
|
Merged via squash.
|
* fix(ui): select new sessions immediately while naming Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 51730352-a3b2-4b6b-a3d4-131040698246 * test: correct pending-title fixtures and mock isolation Co-authored-by: steipete <[email protected]> * fix: preserve new session route through focus cleanup Keep the connection-validated handoff through both navigation-key and draft/focus hint cleanup. Reject it after reconnect. Co-authored-by: steipete <[email protected]> * refactor: keep provisional lineage guard in its owner Reject only the displayed unadmitted key at the lineage load boundary; leave the shared data controller unchanged. Co-authored-by: steipete <[email protected]> --------- Co-authored-by: steipete <[email protected]>
What Problem This Solves
Fixes: the previous conversation stays selected while a new session starts, and “New session” looks like a finished title while automatic naming is still running.
User Impact
New sessions immediately appear selected in the sidebar. A subtle animated placeholder appears in the sidebar and chat header until naming succeeds or fails, respects reduced motion, and restores the draft if creation is rejected. No configuration or migration is required.
Why This Change Was Made
Keep provisional selection in the existing create handoff instead of admitting an uncreated session to Gateway state. Derive naming status from the existing title-request registry and publish both start and settlement, including failed naming. Suppress duplicate rows during admission without changing authoritative session membership.
Evidence
56952494dd71d4a67422a0e8b5e11d56d266e9a1; required CI/security gates are green. Canonical UI typecheck, scoped lint, formatting, and mock-factory ratchet also passed locally.68fed4aa461, and integrated that repair without conflicts. Root scripts and UI typechecks plus 15 title projection/state/event tests passed after integration.Before
After
Worked on by
Work sessions
View the OpenClaw team session