Skip to content

test(ui): align picker fixtures with provider and runtime controls - #198537

Merged
steipete merged 3 commits into
mainfrom
fix/ci-435270-picker-fixtures
Nov 14, 2026
Merged

steipete merged 3 commits into
mainfrom
fix/ci-435270-picker-fixtures

Conversation

@steipete

@steipete steipete commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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 generic createControlUiMockSessionRow builder into control-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

  • Reproduced stale provider/auth/runtime/touch assumptions before editing.
  • The new control-ui-session-fixtures.test.ts case persists runtime selection and restores the model runtime when cleared fails on the base and passes with the fix.
  • Passing focused E2E coverage (28 cases): composition (3), touch (1), runtime readability (2), runtime context budget (1), native runtime recovery (9), chat-only model (1), provider presentation (2), quota identity (2), and model catalog (7).
  • All 11 shared-session and serialized Workboard fixture tests pass on the final repair. The focused mock-socket lifecycle test, including native WebSocket passthrough, also passed before the import-only repair.
  • pnpm tsgo:scripts reproduces 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.
  • Targeted script/UI lint, formatting and whitespace checks pass on the final repair. Earlier focused UI/E2E typechecks and E2E results remain applicable to the unchanged picker and runtime behavior. No sleeps, increased timeouts, or weakened assertions.
  • Independent Codex reviews of the picker integration, shared owner, and final helper extraction: no actionable P0–P2 findings.

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.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review November 14, 2026 00:58
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T01:17:53.820458Z 29a4883 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Updates 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.

  • Before: Authoritative session replies retain the previous runtime.
  • After: Patch, list, and session-info replies retain Codex; clearing the override restores the model runtime.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused fixture repair with no actionable introduced defect; broad validation remains unsettled.
Proof confidence 🦐 gold shrimp (3/6) Changes affect test support and an unused export, so shipped-entry-point proof is unnecessary; browser and fixture validation is reported in the PR body.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Scheduled browser coverage targets obsolete controls, while mock session replies undo runtime selections.
Reason: Restores useful coverage of approved behavior without introducing a new product choice or runtime policy.

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
Reviewed head: 29a4883996c7f710fe9ed28952c5a95434c623c4

Before merge

None.

Findings

None.

Agent review details

How this fits together

Browser 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
Loading

Technical review

Best 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

  • Shared authoritative session fixtures keeps the original intent (d708507: Keep per-session identity and metadata authoritative while preserving explicit stale-response fault injection.)
  • Mock session row builder keeps the original intent (06431c3: Model Workboard preview sessions consistently using shared fixtures.)
  • Provider navigation and runtime/account controls keeps the original intent (feat(ui): group model picker runtime and account settings #192137: Replace duplicate runtime rows and displaced settings with grouped controls using existing selection owners.)
  • Virtualized option discovery keeps the original intent (b968958: Reveal options by model reference because offscreen virtualized options may not be mounted.)
  • Touch focus regression keeps the original intent (8d9e033: Preserve overlay interaction when an iOS tap focuses an ancestor instead of the provider button.)
  • Native WebSocket passthrough keeps the original intent (9ee7406: Allow real transport connections for Desktop preview evidence.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit d708507 adds ui/src/test-helpers/control-ui-session-fixtures.ts:122 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d708507a498b; files: ui/src/test-helpers/control-ui-session-fixtures.ts)

PR surface

Source 0, Tests +66, Other 0. Total +66 across 22 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 18 150 84 +66
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 3 3 0
Total 22 154 88 +66

Preflight source

Source 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

Metric Value Why it matters
Production versus test changes Production +1/-1; tests and test support +153/-87 The production edit only removes an unused export; growth repairs shared fixture behavior and existing browser scenarios.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Repairs meaningful UI regression coverage with limited scope and no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 13, 2026, 8:31 PM ET / November 14, 2026, 01:31 UTC.

@steipete
steipete merged commit b6390c7 into main Nov 14, 2026
131 of 142 checks passed
@steipete
steipete deleted the fix/ci-435270-picker-fixtures branch November 14, 2026 04:35
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant