Repository navigation
test(ui): align picker fixtures with provider and runtime controls - #198537
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 Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesUpdates picker tests to the current provider and runtime controls and preserves runtime selections in shared mock Gateway replies. Example: Select Codex for openai/atlas-pro in the mock Gateway preview.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR repairs useful picker coverage without changing production behavior; no introduced correctness defect was found, but failing exact-head UI checks remain unattributed. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherBrowser tests and development previews send session requests through the mock Gateway, whose shared session fixture owner supplies authoritative replies. flowchart LR
A[Browser scenarios] --> B[Picker controls]
B --> C[Mock Gateway]
C --> D[Shared session fixtures]
E[Model catalog fixtures] --> D
D --> F[Patch and session replies]
F --> B
Technical reviewBest possible solution: Retain the current picker design and repair its tests through the existing shared mock session owner. Do we have a high-confidence way to reproduce the issue? Source confirms stale provider-disclosure selectors and missing runtime handling in the base mock owner; the PR reports focused failing-before/passing-after validation, which was not rerun during this read-only review. Is this the best way to solve the issue? The repair uses existing owners, migrates the extracted builder's consumers together, and preserves selection, search, touch-focus, account-identity, and readability assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 51c2f42a8e02. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +66, Other 0. Total +66 across 22 files. Added test files: 1. 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. Review metrics
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 13, 2026, 8:31 PM ET / November 14, 2026, 01:31 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…penclaw#198537) * test(ui): align model picker fixtures with provider and runtime controls * test(ui): persist runtime selections in the mock gateway * fix(test): migrate all mock session row consumers
What Problem This Solves
Scheduled UI E2E tests still target the old picker accordion and simultaneous runtime rows, and the mock Gateway drops runtime selections from its authoritative replies.
User Impact
No production behavior changes. CI again exercises provider and runtime selection, search, touch, account identity, and desktop/phone picker geometry.
Why This Change Was Made
The provider rail (92e16d2, #192135), runtime/account settings (56ca2fa, #192137), and phone sheet (2bbbc2c, #192142) changed the controls and their presentation. Migrate fixtures to those controls, open account details explicitly, and use actionable touch targets. Exact layout assertions follow the existing desktop/phone CSS, and shortcut numbering follows the active provider's matches.
The runtime segment commits through
sessions.patch. Persist its override and resolved runtime in the shared mock session owner, including restoring the model's default when cleared. Extract the existing genericcreateControlUiMockSessionRowbuilder intocontrol-ui-mock-session-row.ts, retaining its defaults and option precedence, and migrate all six consumers: the three Workboard helpers, mock dev server, session-design fixtures, and plugin-view benchmark fixtures. Remove duplicate transient changed-field tracking to keep the session owner within the file-size limit. The Gateway helper also drops a redundant branch around the WebSocket constructor's optional argument. Keep the runtime control private to its only caller, resolving its unused export.Evidence
control-ui-session-fixtures.test.tscasepersists runtime selection and restores the model runtime when clearedfails on the base and passes with the fix.pnpm tsgo:scriptsreproduces the three missing-export errors and downstream implicit-any error on the initial PR head, then passes with all script consumers migrated. A runtime smoke also constructs Knowledge and Workboard rows with their existing defaults and imports the session-design module successfully.CI: exact corrected-head run 43539490142 passes script types and lint. Its25 remaining failures are19 original baseline cases, the known semantic-option test (#198546), and five later-main spacing/Incognito/host-remediation cases also present in scheduled main run43540514362. Failed tests and listed owners are unchanged; the scoped mock runtime branch is absent from these flows. Native inherited-failure evidence retains exact logs and source attribution.