Skip to content

test(ui): use native picker shells in responsive fixtures - #198532

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

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

Conversation

@steipete

@steipete steipete commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Three responsive chat layout tests fail because their static fixture still renders pre-popover model and effort menus. Phone-sheet CSS exposes that obsolete closed-menu content, adding 366px to the composer footer.

User Impact

No product behavior changes. The fixture now represents the production composer's initial closed state, restoring useful coverage of short landscape layouts.

Why This Change Was Made

Use initially empty native popover shells and load the owning overlay stylesheet. This removes unused static option markup while preserving every existing geometry and actionability assertion. The change is limited to one test file and removes more code than it adds.

Evidence

Scheduled run 43527024791 and a local base reproduction fail these cases in ui/src/pages/chat/chat-responsive.browser.test.ts:

  • keeps the composer bottom controls, attachment, and primary action aligned at 568x320
  • keeps short-landscape composer adjunct rows scroll-reachable
  • keeps short-landscape slash menu visible inside the bounded composer

All 53 cases in the responsive layout group pass after the fix, including the three failures. Targeted tsrs typechecking, oxlint, formatting, diff checks, and independent Codex review pass. No sleeps, timeout increases, or weaker assertions.

CI: exact-head run 43537325546 completed with the original responsive failures resolved. Its14 inherited UI-unit failures are13 original matching signatures plus the later-main semantic-option assertion (#198546). Failed test and owner blobs are unchanged. Landing uses the authorized inherited-failure route and retains failed CI.

@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:55
@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:57:09.619020Z cb35383 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.

@steipete
steipete enabled auto-merge (squash) November 14, 2026 01:00
@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
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces obsolete model and effort menu fixtures with native popover shells and loads their shared stylesheet.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported test repair with reported browser validation; the available failed-check metadata does not establish the cause of the remaining CI failures.
Proof confidence 🦐 gold shrimp (3/6) No shipped behavior changes; the relevant validation is the responsive browser fixture suite, for which the body reports base failures and 53 passing cases after the repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Obsolete fixture menus produce misleading failures in short-landscape composer layout coverage.
Reason: The maintainer-authored direction restores fixture fidelity while retaining the existing responsive contracts.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR makes the responsive fixture match production’s closed picker state without weakening assertions; no actionable patch defect was found.

Priority: P2
Reviewed head: cb35383d1e7b2083cf00669ed2c77c3f0b195cfc

Before merge

None.

Findings

None.

Agent review details

How this fits together

The responsive browser suite combines static chat markup with production stylesheets, then measures composer geometry and control reachability across viewport sizes.

flowchart LR
  A[Static chat fixture] --> C[Browser page]
  B[Production stylesheets] --> C
  C --> D[Closed native picker shells]
  D --> E[Composer geometry assertions]
Loading

Technical review

Best possible solution:

Keep the existing layout assertions and represent initially closed pickers with the production popover structure and stylesheet.

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

Source confirms that the fixture includes obsolete menu content absent from production’s initial closed state; the reported 568×320 failures were not independently executed in this read-only review.

Is this the best way to solve the issue?

This is the smallest complete fixture repair: reuse the existing native overlay contract, remove stale option markup, and preserve all assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8c18a7bed28f.

Provenance checked

  • Responsive composer fixture and picker coverage keeps the original intent (fix(ui): restore the composer model picker dialog #123090: Earlier picker restoration preserved the rich composer experience and responsive geometry coverage; the later native-picker migration moved visibility to shared overlay surfaces.)
  • Short-landscape composer reachability keeps the original intent (f5c700b: The earlier landscape repair added coverage that composer adjunct rows remain scroll-reachable; this PR leaves those assertions intact.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned change preserves assertions: The introduced diff replaces only the two obsolete menu bodies and adds the overlay stylesheet; geometry assertions, waits, and timeouts are unchanged. (ui/src/pages/chat/chat-responsive.browser.test.ts:230, cb35383d1e7b)
  • Replacement matches production: The production model picker starts with choicesMounted false, and the effort picker renders its panel only while open; both use an oc-overlay chat-picker-overlay surface with popover="manual". (ui/src/pages/chat/components/chat-model-picker.tsx:221, cb35383d1e7b)
  • Visibility belongs to the shared overlay: The production picker owner imports overlay.css, whose closed-popover selector explicitly applies display:none; loading that stylesheet restores the same visibility boundary in the fixture. (ui/src/components/solid/overlay.css:624, cb35383d1e7b)
  • Current main still has the obsolete fixture: Fetched main retains the populated pre-popover model and effort menu markup, so the fixture repair remains useful. (ui/src/pages/chat/chat-responsive.browser.test.ts:230, 8c18a7bed28f)
  • Coverage intent and feature history: History across the old ui/src/ui/chat path and its move identifies earlier responsive geometry work, landscape coverage, viewport verification, and the later native-picker migration; this repair preserves those contracts. (ui/src/pages/chat/chat-responsive.browser.test.ts:2205, 8c18a7bed28f)
  • Reported validation and remaining CI uncertainty: The supplied complete PR body reports three base failures and all 53 responsive cases passing after the repair. Captured checks include two failed UI shards and a pending CI gate. REST inspection was blocked by the environment proxy, so those failures cannot be attributed from the available evidence. (cb35383d1e7b)

PR surface

Tests -12. Total -12 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 15 -12
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 15 -12

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: Repairs reported failures in responsive layout coverage 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: Repairs reported failures in responsive layout coverage 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Inspect the exact-head UI failure logs and attribute any remaining failures before landing.

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:10 PM ET / November 14, 2026, 01:10 UTC.

@steipete
steipete disabled auto-merge November 14, 2026 02:44
@steipete
steipete merged commit d70395f into main Nov 14, 2026
139 of 145 checks passed
@steipete
steipete deleted the fix/ci-435270-native-picker-shells branch November 14, 2026 02:47
@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 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. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant