Repository navigation
fix(ui): stop model picker Enter checks from failing on cold opens - #207963
Conversation
Wait for the exact selection callback after a single Enter, including when the navigation module must replay the key. Keep the description and case-sensitive alias assertions intact. Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 2721c947-276b-451d-b42f-bf45a3bc4cd3
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThis PR waits for selection callbacks after Enter in the alias-preservation and description-search browser tests. Example: Search for Café on a cold picker open and press Enter once.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes two browser assertions respect intentional asynchronous keyboard replay while preserving their exact expected results; no actionable defect was found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe browser tests mount the production MultiSelect component, send keyboard input through its shared lazy menu runtime, and observe the resulting selection callback. flowchart TD
A[Browser test] --> B[MultiSelect input]
B --> C[Shared menu machine]
C --> D[Lazy navigation runtime]
D --> E[Selection callback]
E --> F[Awaited exact assertion]
Technical reviewBest possible solution: Keep the existing single-key interactions and await their exact callback results with the established helper. Do we have a high-confidence way to reproduce the issue? Source shows Enter being queued during the dynamic import while the old assertions run immediately, and the linked diagnostic records precisely that ordering; this review executed no target code. Is this the best way to solve the issue? This is the smallest complete repair because the tests must observe asynchronous selection completion without preloading navigation, repeating Enter, or weakening the expected callback. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f766de450b05. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +4. Total +4 across 1 file. 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:
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 28, 2026, 11:58 PM ET / November 29, 2026, 04:58 UTC. |
* commit 'a012e91c821705e443e42660c34e352623fb0a70': (584 commits) fix: confirm recovered config edits while the Gateway is busy (#207918) fix: make desktop chat presence avatars slightly smaller (#207966) fix: list and select routed Claude models without requiring Claude CLI (#207806) fix(ci): check out verifier before plugin preflight reuse test(reply): prove channel replacement on user messages (#207813) fix(release): bootstrap smoke uses persistent agent creation fix(ui): stop model picker Enter checks from failing on cold opens (#207963) fix: explain when a provider policy stops a chat reply (#207411) fix: show context usage during Claude CLI turns (#207036) fix: align the side panel with its resize divider (#207936) fix: stop the manual handoff UI test from hanging after completion (#207945) fix: surface favorites and recommended models in picker search (#201450) fix: show the saved quota reset when chat skips its only model (#207210) fix: avoid reloading unchanged plugins after Gateway boot (#207949) fix: keep Task progress double-clicks from changing the window (#207937) fix(doctor): continue repairs past retained conflicting exec approvals (#207951) test(reply): make account isolation assertion decisive (#207793) fix: keep task progress compact when reopening Details (#207943) fix(ui): restore the saved reading position after an empty search (#207673) fix: remove four Memory Wiki settings that had no effect (#207882) ...
…207963) Wait for the fallback model picker to replay a single Enter on a cold open. Keep the exact callback count, alias order and case, and Unicode description selection assertions. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 2721c947-276b-451d-b42f-bf45a3bc4cd3 (cherry picked from commit d01f6c1) Follow-up audit: Pinned main audit found no later same-path, PR-number, or source-SHA follow-ups. Co-authored-by: RomneyDa <[email protected]>
…penclaw#207963) Wait for the fallback model picker to replay a single Enter on a cold open. Keep the exact callback count, alias order and case, and Unicode description selection assertions. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 2721c947-276b-451d-b42f-bf45a3bc4cd3
What Problem This Solves
Two Chromium checks for the fallback model picker can fail on the first Enter even when the picker selects the right model. They expect the callback to have run by the time the browser finishes sending the key. On a cold open, keyboard navigation may still be loading.
User Impact
No change to the picker. A person still presses Enter once. CI can now distinguish a delayed selection from a missing, wrong or duplicate selection.
Why This Change Was Made
I kept the real keypress and waited only afterward, using the existing
waitForSolidhelper around the originaltoHaveBeenCalledExactlyOnceWithassertions. The Unicode description check, alias spelling and order, and callback count are unchanged. There is no sleep, preload, timeout increase or test retry.The navigation change deliberately kept keyboard handling off the startup path and replays queued keys in order. An earlier multi-select test fix waits for the same reason. The original failure trace recorded the selection after the assertion, without a second keypress.
Evidence
I compared main
f10c999aand the fix57d43b20on the same AWS CrabBox Pond lease, with one browser case per fresh Vitest process and retries disabled. I verified that published head207f6415has the identical Git tree. Both unchanged tests failed on their first cold run.["fixture/backup"]["backup", "custom/Model-A"]Fix verification: the full multi-select file passed 16/16 in 1.53 s of Vitest wall time. The cold retained-focus test also passed: ArrowDown and Enter queued before navigation loaded, selected only the second option and left focus in the input. UI component-test typecheck, file lint and formatting all passed.
Real Chromium and disposable Gateway: in Settings → Agents, I searched for Backup and pressed Enter once. The
fixture/backupchip appeared; the saved fallback list was exactly["fixture/backup"], and the chip survived reload after autosave. Reloading immediately when the chip first appeared, before the settings save completed, did not retain the edit in a separate run. This PR does not change settings autosave.Not verified: hosted PR CI or WebKit.
Worked on by: @daniel-lxs
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw