Repository navigation
fix(ui): wait for provider confirmation readiness - #192169
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 SummaryThis 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 changesThis 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.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -3. Total -3 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel 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 3, 2026, 1:54 PM ET / 18:54 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
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
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.tsstill look for the former DM policy pairing option, andconfig-form-stored-secret.browser.test.tsasks forSave: Bot Tokenwhile the control saysSave: 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.