Skip to content

test(ui): wait for lazy model picker controls - #198534

Merged
steipete merged 1 commit into
mainfrom
fix/ci-435270-lazy-picker
Nov 14, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ci-435270-lazy-picker

Conversation

@steipete

@steipete steipete commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Model-control unit tests inspect the lazy picker's shell before the requested controls and catalog state have mounted.

User Impact

No user-visible behavior changes. The tests wait for the actual controls they exercise and retain their existing state and rollback assertions.

Why This Change Was Made

The runtime/account settings redesign (56ca2fa, #192137) added lazy panel content. Wait for the runtime button, locked-model value, catalog message, or complete settings tuple instead of treating the menu container as ready. No sleeps, increased timeouts, or weaker assertions.

Evidence

  • Baseline reproduces both hosted-environment.test.ts failures and five chat-pane-session-controls.test.tsx cases.
  • The hosted-environment and pane-session-controls suites pass: 24 tests.
  • All seven chat-pane-unmaterialized-settings.test.ts cases pass, preserving pending intent and failed-write rollback.
  • Focused UI/E2E typechecks, lint, and format checks pass.
  • Independent Codex review: no actionable P0–P2 findings.

CI: exact-head run 43537450883 completed with nine inherited UI-unit failures: three responsive fixture cases (#198532), four draft-title cases (#198516), the retained model-label normalization case (#198535), and the semantic model-option assertion (#198546). The failed tests and relevant owners are unchanged between the actual baseline and tested merge. All 31 affected readiness cases pass locally. Landing uses the authorized inherited-failure route; this does not classify failed CI as green.

@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:56
@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-14T00:58:35.414108Z 94322bd Draft marked ready
ℹ️ 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. 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

The tests wait for lazy model-picker controls and expected settings before inspecting or clicking them.

Example: A hosted-environment test opens the picker and selects the agentsapi runtime.

  • Before: The test can click before the runtime button mounts and fail on null.
  • After: The test waits for the agentsapi button, then checks the original runtime-selection results.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, correct test repair supported by confirmed baseline failures and reported passing unit suites, with inherited failures keeping broad CI red.
Proof confidence 🦐 gold shrimp (3/6) This test-only repair requires no shipped-entry-point demonstration; supplied validation covers the affected suites, while historical picker screenshots establish design context only.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: UI validation fails when tests inspect the picker loading shell before the requested controls mount.
Reason: The repair preserves intentional lazy loading and distinct selection, pending-intent, and rollback coverage.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it narrowly repairs confirmed test-readiness failures without weakening assertions or changing production behavior; no actionable correctness or security defect was found.

Priority: P2
Reviewed head: 94322bd444943e2d104676a33e681f4875957b41

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI tests mount the production model controls with Gateway fixtures, open the lazy picker, and assert rendered selections and mutation outcomes.

flowchart LR
  A[Test fixtures] --> B[Model controls]
  B --> C[Lazy picker panel]
  C --> D[Rendered controls]
  D --> E[waitForSolid]
  E --> F[Existing assertions]
Loading

Technical review

Best possible solution:

Retain the existing lazy renderer and readiness helper, waiting for each exercised control while preserving the original behavioral assertions.

Do we have a high-confidence way to reproduce the issue?

Source explains the readiness race and scheduled-main annotations confirm its exact failures; no target code was executed during this read-only review.

Is this the best way to solve the issue?

This is the smallest complete repair: it uses the existing helper at the asynchronous DOM boundary without sleeps, longer timeouts, new scaffolding, or weaker expectations.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5e1bb26e340c.

Provenance checked

  • Lazy picker readiness keeps the original intent (ab97597: Keep unopened option, account, and context renderers off the startup path while retaining local loading feedback.)
  • Locked model and catalog assertions keeps the original intent (b53be77: Show the concrete selected model in locked chats; existing catalog tests also preserve distinct empty, disconnected, and failed states.)
  • Runtime and context settings keeps the original intent (56ca2fa: Place runtime and context settings within the picker using existing selection owners.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 59332fa adds ui/src/pages/chat/chat-pane-unmaterialized-settings.test.ts:141 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 59332fa85d39; files: ui/src/pages/chat/chat-pane-unmaterialized-settings.test.ts)
  • Vyctor H. Brzezowski: Raw commit 56ca2fa adds ui/src/pages/new-session/hosted-environment.test.ts:124 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 56ca2fae9015; files: ui/src/pages/new-session/hosted-environment.test.ts)

PR surface

Tests +8. Total +8 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 14 6 +8
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 14 6 +8

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.

Labels

Label changes:

  • add P2: This focused repair addresses confirmed main-branch test failures without changing shipped behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: This focused repair addresses confirmed main-branch test failures without changing shipped behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • 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:13 PM ET / November 14, 2026, 01:13 UTC.

@steipete
steipete merged commit d2bfdb0 into main Nov 14, 2026
152 of 157 checks passed
@steipete
steipete deleted the fix/ci-435270-lazy-picker branch November 14, 2026 01:18
@steipete

Copy link
Copy Markdown
Contributor Author

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

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. size: XS 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