Repository navigation
fix(oauth): recover Muse Keychain login and preserve actionable errors - #7145
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
# Conflicts: # structure/INDEX.md # structure/manifest.json
|
thx |
# Conflicts: # structure/INDEX.md
|
Maintainer integration into
|
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. |
Summary
6b2b66d194). Currentdevat7640a942b35044c974e534b84d5a8049f4a8ae9astill had the five-second read and generic error projection. This change does not relax the dashboard-session consent gate.Closes #7112
Evidence limits: no real Keychain, user configuration, credentials or authenticated Meta requests were accessed. The approval cutoff, erased diagnostics and blocked paste recovery are reproduced with injected inputs. The reporter's exact underlying Keychain/credential state is still unknown. Current Meta authentication documentation and the official SDK source do not publish the host credential-store schema or prove device endpoint/client-id drift, so no new backend/location is guessed. Apple's SecurityTool source and SecBase error constants support the process-exit classifications.
If the updated flow still fails, request only the displayed safe reason/HTTP status, OpenCodex and Muse versions, whether the dashboard is remote from the proxy, prompt duration, and the
errorfield from the login/status response. Do not request auth files, Keychain contents, tokens, or full HTTP traces.Verification
All runtime/test commands were prefixed with
OPENCODEX_HOME="$PWD/.tmp/7112/opencodex" CODEX_HOME="$PWD/.tmp/7112/codex". The new persistence test also creates, restores and cleans its own temporary homes independently of the test preloader. No GUI source changed.bun install— passed; no dependency/lockfile changes.testRunnerBunpin) used below; the host's Bun 1.4.0 could not satisfy the tooling guard's nested runner selection. Downloaded runtime remains ignored scratch, with no shared installation changes..tmp/7112/bun-runtime/bun-darwin-aarch64/bun test tests/providers/meta-muse-keychain.test.ts tests/oauth/oauth-meta-muse-login-diagnostics.test.ts tests/providers/meta-muse-oauth.test.ts tests/providers/meta-muse-login-order.test.ts tests/providers/meta-muse-device.test.ts tests/oauth/oauth-status-privacy.test.ts— 135 passed, 0 failed..tmp/7112/bun-runtime/bun-darwin-aarch64/bun test tests/oauth/oauth-meta-muse-login-diagnostics.test.ts tests/oauth/oauth-login-cli-browser-launch.test.ts— 23 passed, 0 failed after independent review fixes (test-owned homes and instruction-only CLI hints)..tmp/7112/bun-runtime/bun-darwin-aarch64/bun test tests/test-layout.test.ts tests/test-layout-tooling.test.ts tests/ci-workflows/file-size-ratchet.test.ts— 36 passed, 0 failed. New tests registered in both the explicit map and fixture; baseline caps unchanged.bun run typecheck— passed.bun run structure:check— passed; Muse login contract split from the existing document to respect its 600-line budget.bun run privacy:scan— passed.(cd docs-site && bun install --frozen-lockfile && bun run build)— passed; 577 pages and 81,200 internal links checked.origin/devreader/login: three expected failures (approval after 5s, public diagnostic, explicit paste recovery); against the fix: 3 passed, 0 failed. Subprocess and validation were injected; no live Keychain/network call.Full local suite and prepush were NOT RUN: the maintainer explicitly forbids heavy/full local runs on this shared host. PR fast Ubuntu CI and then the
ci.ymlmanuallane=allcross-platform dispatch provide broad validation; exact-head results will be recorded before handoff. CI has not yet been claimed passing.Authentication/credential changes require explicit maintainer security review under
MAINTAINERS.md. Independent read-only agent review found two correct issues (test persistence isolation and an empty CLI browser URL); both were fixed, focused regressions passed, and a bounded static re-review reported zero blockers. That review does not replace maintainer security review. No merge is authorized for this lane.Checklist