Repository navigation
fix(auth): clear deleted account selections and support account recovery - #157745
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: blocked before merge. Reviewed September 25, 2026, 2:02 AM ET / 06:02 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch clears deleted account references from model defaults, sessions, and queued replies, adds saved-account recovery and provider settings navigation in the Control UI, and refreshes the chat composer after auth changes. Merge readiness⛔ Blocked before merge - 5 items remain Current main does not provide the requested recovery behavior. The latest head still has two previously reported edge cases that block a safe merge. Priority: P1 Review scores
Verification
How this fits togetherOpenClaw's credential removal command updates saved credentials, agent settings, and conversation selections. The Control UI reads Gateway account status and asks the Gateway to verify a replacement before selecting it for an agent. flowchart LR
A[Saved credentials] --> B[Credential removal]
B --> C[Agent model settings]
B --> D[Sessions and queued replies]
C --> E[Gateway account status]
E --> F[Control UI recovery]
F --> G[Verified account selection]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +793, Tests +1149, Docs 0. Total +1942 across 38 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Make deletion recoverable across credential and session owners, and build recovery choices from compatible saved accounts independently of sign-in methods. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source supports a pinned-account deletion and model-switch reproduction path; this read-only review did not execute it. Is this the best way to solve the issue? No. The branch uses the relevant credential and Gateway owners, but methodless saved accounts remain unreachable and post-deletion session cleanup lacks recovery. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1976a166443f. 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
HistoryReview history (2 earlier review cycles)
|
|
Codex: addressed the credential-owner finding in This update additionally repairs the deletion lifecycle: confirmed removal clears affected model, conversation, fallback, and queued references while preserving models, independent same-ID agent credentials, and concurrent reconnects. Real SQLite regressions cover delete/reconnect/model-switch and both session/queue reconnect races. Expiry and transient inventory gaps do not clear selections. Validation: 161 focused tests, bundled-UI browser recovery with a mock Gateway, production and test type checks, formatting/lint, and independent P0–P2 review passed. Updated screenshots and scope details are in the PR description. No new live OAuth/inference or Mac retest is claimed. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
…4-prep * commit '8fe893da516ebdc817692fb2d272e27bc3c88376': (31 commits) fix(test): wait for reload admission before restart polling (#157964) refactor(mattermost): reuse DM retry option selection (#157800) chore(i18n): refresh native locales (#157850) perf(sessions): reuse current participants across transcript appends (#157622) refactor(signal): share pending transport migration results (#157777) fix(tui): open model pickers without waiting for the Gateway (#157839) fix(gateway): apply config despite delayed file notifications (#157906) fix(auth): clear deleted account selections and support account recovery (#157745) fix: plugin reloads lose tool results and strand subagent settlement (#157339) fix(gateway): avoid preview errors during worker metadata updates (#157943) refactor(diffs): reuse native promisify for compression (#157835) fix(models): keep current choices on the first picker page (#157869) fix(plugins): retain existing quarantine across unrelated reloads (#157907) fix(openai): prioritize ChatGPT sign-in and clarify auth choices (#157792) chore(ui): refresh control ui locales (#157955) fix(ui): refresh connected accounts after auth changes (#157950) fix(scripts): avoid redundant npm version process in package checks (#157809) refactor(usage): capture hosted pricing once per operation (#157838) refactor(ui): share slash-command failure results (#157649) fix(cron): announce runs miss the channel's formatting rules (#157877) ...
…ery (openclaw#157745) * fix(ui): recover removed accounts and open provider settings * fix(ui): use the narrowed provider route snapshot * fix(auth): release deleted account selections across agents and sessions * fix(ui): refresh composer accounts after auth changes
What Problem This Solves
Removing a provider credential left model defaults and conversations pointing at its old profile ID. Signing in again could work until switching models restored the deleted selection. Recovery also failed to offer an already connected shared account.
User Impact
Why This Change Was Made
The existing deletion, session-write, and shared-auth request owners now drive cleanup, recovery, and mounted UI refresh.
Sign-in alone remains save-only. Expiry and temporary inventory gaps do not clear account selections. Personal account ownership and credential storage formats are unchanged.
Evidence
Browser evidence uses synthetic accounts and a mock Gateway. No new live OAuth/inference run or native Mac retest is claimed. Existing setup activation tests cover verification and configuration; lifecycle regressions use real credential and session databases.
Known follow-up: the existing OpenAI usage widget invokes Codex subscription usage for SIWC profiles, producing a public-API-route error. Its refresh icon refreshes usage statistics; it is not an OAuth renewal control.
Existing shared account recovery (synthetic browser proof)
Inspected before/after screenshots (synthetic accounts)
Replacement account selection:
Composer refresh after an external auth publication (synthetic accounts, mock Gateway)