Repository navigation
fix(ui): complete provider sign-in from the waiting dialog - #148300
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Screenshot evidence from synthetic browser fixtures. Sign-in choices Browser sign-in Device pairing |
|
Codex review: blocked before merge. Reviewed September 14, 2026, 11:30 AM ET / 15:30 UTC. ClawSweeper reviewWhat this changesThe PR streamlines provider sign-in dialogs, starts device polling automatically, handles background completion, and makes ChatGPT device pairing the featured sign-in choice. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 4 items remain The central fix remains useful and is not superseded on current main. Keep this protected PR open; review identified one actionable regression in provider recovery guidance. Priority: P2 Review scores
Verification
How this fits togetherProvider plugins supply sign-in instructions, browser destinations, and device codes to a Gateway-owned wizard session. The Control UI presents those steps and reconciles completion with the Models and model-setup pages. flowchart LR
A[User selects provider] --> B[Provider authentication]
B --> C[Gateway wizard session]
C --> D[Browser dialog and polling]
D --> E[Provider sign-in page]
E --> B
C --> F[Saved credential result]
F --> G[Models page refresh]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +171, Tests +284. Total +455 across 25 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep Gateway-owned authentication and automatic completion, while preserving provider diagnostics as visible information and retaining existing credential and model settings. Do we have a high-confidence way to reproduce the issue? Yes, from source: a ChatGPT browser login with a TLS prerequisite failure emits repair guidance as a note that the new runner discards before displaying the shorter error. This path was not executed. Is this the best way to solve the issue? Partly: reusing the wizard owner and shared browser runner is appropriate, but skipping every authentication note is broader than the redundant-screen problem. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a5fb8446c0e1. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
landpr-approve-unrelated-red |
|
Choose Twitch through the current two-option button instead of the retired radio and Continue controls. Preserve the typed answer, single session rotation, and no-replay assertions after the UI change in #148300.
* refactor(update): consolidate status check state Keep connection and read-error facts in the progress snapshot, represent status checks with one request state, and reuse the recovery predicate. Remove redundant test waits and the warning assertion covered before registry lookup. Preserve the behavior introduced in #147883. * test(ui): reuse shared server for accent selection Keep the existing accent and persistence assertions while replacing the private mock-dev subprocess with the suite-owned server and a signed-in mock Gateway. * test(ui): keep cloud recovery history consistent Use the same durable assistant reply and producer run identity in history and live events. Preserve cloud recovery assertions and deadlines when terminal delivery precedes the persisted reply. * test(wizard): run recovery integration in the broker host Route the real shared-state consumer through the existing isolated infra forks and exclude it from the wizard thread pool. Preserve recovery assertions and broker admission guards after the metadata-worker migration. * chore(test): drop routing changes already landed on main Main now routes wizard recovery through the database forks and excludes it from the wizard thread pool (#148337). Remove this PR's duplicate changes so the final merged list contains the test exactly once. * fix(test): remove duplicate wizard recovery registration The independent routing additions in #148337 and #147684 registered the same test twice and stopped CI shard planning. Retain the canonical entry after setup.test.ts and remove the duplicate before it. * test(custodian): follow immediate wizard choices Choose Twitch through the current two-option button instead of the retired radio and Continue controls. Preserve the typed answer, single session rotation, and no-replay assertions after the UI change in #148300.
…148300) ## Problem Provider sign-in can require extra confirmation screens, duplicate pairing details, and retain an input dialog after credentials are saved. ## Fix Shared controls start binary choices directly and show one sign-in panel with Open sign-in, Copy code or link, waiting status, and Cancel. Device polling starts automatically. Browser login observes completion while manual entry stays available under a disclosure. Completion and cancellation close the dialog. Recovery instructions remain visible when a connection fails. ChatGPT offers device pairing and browser login. ## Consumers The existing wizard owns authentication state. Shared controls serve Models, setup, and Custodian. Command-line clients retain the sign-in destination, code, and provider instructions through progress updates. The public SDK keeps its login function and options contract. ## Validation Real Gateway browser and device approval saved credentials and closed the dialog. Saved profiles survived a reload. Cancellation stopped the provider wait without saving credentials. Manual entry retained typed text during background observation. A failed connection displayed recovery guidance. The documented personal-account CLI completed sign-in and cancellation with a delayed status read, retaining the complete device instructions. Telegram Test Server checks passed for OpenAI device sign-in, saved credentials, sign-in status refresh, an existing attempt, and cancellation. Passed registered UI tests, auth/provider and command-line suites, browser scenarios, static checks, and bundle budgets. [Source reproduction](openclaw#148300 (comment)). [Sign-in screenshots](openclaw#148300 (comment)). [Recovery screenshots](openclaw#148300 (comment)). Co-authored-by: Ayaan Zaidi <[email protected]>
* refactor(update): consolidate status check state Keep connection and read-error facts in the progress snapshot, represent status checks with one request state, and reuse the recovery predicate. Remove redundant test waits and the warning assertion covered before registry lookup. Preserve the behavior introduced in openclaw#147883. * test(ui): reuse shared server for accent selection Keep the existing accent and persistence assertions while replacing the private mock-dev subprocess with the suite-owned server and a signed-in mock Gateway. * test(ui): keep cloud recovery history consistent Use the same durable assistant reply and producer run identity in history and live events. Preserve cloud recovery assertions and deadlines when terminal delivery precedes the persisted reply. * test(wizard): run recovery integration in the broker host Route the real shared-state consumer through the existing isolated infra forks and exclude it from the wizard thread pool. Preserve recovery assertions and broker admission guards after the metadata-worker migration. * chore(test): drop routing changes already landed on main Main now routes wizard recovery through the database forks and excludes it from the wizard thread pool (openclaw#148337). Remove this PR's duplicate changes so the final merged list contains the test exactly once. * fix(test): remove duplicate wizard recovery registration The independent routing additions in openclaw#148337 and openclaw#147684 registered the same test twice and stopped CI shard planning. Retain the canonical entry after setup.test.ts and remove the duplicate before it. * test(custodian): follow immediate wizard choices Choose Twitch through the current two-option button instead of the retired radio and Continue controls. Preserve the typed answer, single session rotation, and no-replay assertions after the UI change in openclaw#148300.







Problem
Provider sign-in can require extra confirmation screens, duplicate pairing details, and retain an input dialog after credentials are saved.
Fix
Shared controls start binary choices directly and show one sign-in panel with Open sign-in, Copy code or link, waiting status, and Cancel. Device polling starts automatically. Browser login observes completion while manual entry stays available under a disclosure. Completion and cancellation close the dialog. Recovery instructions remain visible when a connection fails.
ChatGPT offers device pairing and browser login.
Consumers
The existing wizard owns authentication state. Shared controls serve Models, setup, and Custodian. Command-line clients retain the sign-in destination, code, and provider instructions through progress updates. The public SDK keeps its login function and options contract.
Validation
Real Gateway browser and device approval saved credentials and closed the dialog. Saved profiles survived a reload. Cancellation stopped the provider wait without saving credentials. Manual entry retained typed text during background observation. A failed connection displayed recovery guidance.
The documented personal-account CLI completed sign-in and cancellation with a delayed status read, retaining the complete device instructions.
Telegram Test Server checks passed for OpenAI device sign-in, saved credentials, sign-in status refresh, an existing attempt, and cancellation.
Passed registered UI tests, auth/provider and command-line suites, browser scenarios, static checks, and bundle budgets. Source reproduction. Sign-in screenshots. Recovery screenshots.