Skip to content

fix(ui): wait for provider confirmation readiness - #192169

Merged
steipete merged 1 commit into
mainfrom
fix/ci-provider-confirm-416841
Nov 3, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ci-provider-confirm-416841

Conversation

@steipete

@steipete steipete commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The provider-removal UI test can run its DOM deadline while the confirmation dialog is still being imported. Scheduled CI 41684146370 failed waiting for that dialog.

User Impact

No production behavior changes. The test still verifies confirmation before logout and the Gateway warning afterward.

Why This Change Was Made

Use the existing rendered-modal test helper, which joins the real lazy-import and modal-render readiness signals. Remove the duplicate immediate DOM poll. All behavioral assertions remain; no sleeps, larger timeout, or retry was added. Test code shrinks by three lines.

Evidence

  • Actual pinned Bun: all 33 provider-page cases passed.
  • Default tsrs UI types, focused lint, formatting, whitespace, and test-line ratchet passed.
  • Independent isolated Codex review found no actionable P0–P2 issues.
  • Limitation: both the focused original case and full original file passed locally. The scheduled failure and source establish the premature readiness deadline, but no deterministic local red reproduction was obtained.

Inherited CI failures

Exact-head CI 41695655143 passed this PR's provider unit file and failed in two independent UI shards: five cases in channels-page.save.test.ts still look for the former DM policy pairing option, and config-form-stored-secret.browser.test.ts asks for Save: Bot Token while the control says Save: Bot token.

The tested merge changes only this provider-confirmation test. The failing Channels and stored-secret owners, fixtures, runtime dependencies and CI workflow are identical to the recorded main parent. These failures remain recorded as failed; landing uses the authorized inherited-failure route.

@clawsweeper

clawsweeper Bot commented Nov 3, 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 3, 2026 18:37
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T18:42:21.541637Z 0a333ed 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 3, 2026 18:45
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces an immediate confirmation-dialog DOM poll with the existing helper that waits for lazy imports and rendered-modal readiness.

Example: The test clicks Remove for OpenAI while the confirmation component is still loading.

  • Before: The DOM wait can expire before the confirmation dialog exists.
  • After: The test joins import and rendering readiness before checking confirmation, logout, and the Gateway warning.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The minimal patch is sound and supported by the observed scheduled failure, but exact-caller deterministic regression proof is absent and CI remains unresolved.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only PR reports all 33 provider-page cases passing on pinned Bun; it changes no shipped behavior requiring separate live-product proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: CI can report a false provider-removal failure while the confirmation component is still loading.
Reason: The observed failure merits a small repair using an established helper, without changing production behavior or weakening assertions.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR makes a focused test-readiness repair, preserves the behavioral assertions, and introduces no actionable defect. The CI gate remains unresolved.

Priority: P3
Reviewed head: 0a333edcdb69570790319071efdfb8ac0eb0d3ac

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No product E2E is needed for this test-only repair; deterministic base-fail/head-pass proof of this exact caller was not obtained.
Agent review details

How this fits together

The Control UI provider-page test clicks the real removal control, renders the shared confirmation dialog, and checks logout and warning behavior against a synthetic Gateway client.

flowchart LR
  A[Provider removal test] --> B[Remove OpenAI control]
  B --> C[Lazy confirmation component]
  C --> D[Rendered modal helper]
  D --> E[Confirmation assertions]
  E --> F[Synthetic Gateway logout and warning]
Loading

Technical review

Best possible solution:

Use the existing rendered-modal helper while preserving every confirmation, logout, and warning assertion.

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

Scheduled CI records the exact failed DOM assertion, and source shows the wait starts before lazy-import readiness; a deterministic local red reproduction was not supplied, and no tests were run during this read-only review.

Is this the best way to solve the issue?

The patch is the smallest complete repair: it reuses the existing readiness owner, removes duplicate polling, and preserves the distinct behavioral checks.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3235705cb012.

Provenance checked

  • Provider-removal confirmation and Gateway-warning assertions keeps the original intent (f6f59b1: The provider-access redesign added confirmation explaining removal effects while preserving provider settings and external secrets.)
  • Modal fixture readiness before DOM deadlines keeps the original intent (24422bd: Separate cold lazy-import startup from unchanged behavioral deadlines without waiting for the operation being confirmed.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

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

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

Labels

Label changes:

  • add P3: This is a narrow test-reliability repair with no production behavior change.
  • 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:

  • P3: This is a narrow test-reliability repair with no production behavior change.
  • 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 3, 2026, 1:54 PM ET / 18:54 UTC.

@steipete
steipete disabled auto-merge November 3, 2026 19:03
@steipete
steipete merged commit 8cbcd68 into main Nov 3, 2026
152 of 158 checks passed
@steipete
steipete deleted the fix/ci-provider-confirm-416841 branch November 3, 2026 19:09
@steipete

steipete commented Nov 3, 2026

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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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