Repository navigation
Conversation
There was a problem hiding this comment.
ℹ️ No critical issues — a couple of minor suggestions inline.
Reviewed changes
signed-outsnapshot — the desktop rate-limit fetch now classifies a stored-but-empty Claude credential entry as a terminalsigned-outfailure (no CLI/PTY/delegated-refresh fallback), and the status bar surfaces it as "not signed in" instead of hiding the segment.- Accounts pane agreement — a new
getClaudeSystemDefaultSignInWarningmirrors the Codex warning: the System-default Claude row gets a destructive border and the existing "Needs sign-in" badge when the viewed runtime's snapshot reportssigned-outand the system default is the active selection, with remote owners suppressed (limits: null). - Tests — new unit tests pin the classification, the fetch short-circuit, status-bar copy, and the warning derivation, including target-mismatch and remote-scope suppression.
Note: this diff includes the two stacked #20120 commits (signed-out detection + status-bar surfacing) ahead of the Accounts-pane commit; the Accounts-pane work itself is small and well-constructed.
ℹ️ Nitpicks
claudeRateLimitTargetMatchesAccountRuntime(and theAccountRuntimetype) inclaude-account-auth-warning.tsare byte-for-byte identical tocodexRateLimitTargetMatchesAccountRuntimeincodex-account-auth-warning.ts. Extracting a shared target-matcher would keep the two from drifting.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
Warning Review limit reachedNext included review available in 2 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (10)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 279885cbe909c248f89d424ab2275be4d3e428c5 and 609fe6b. 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe change adds a Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to The Accounts pane and status bar present the signed-out state consistently without an identified merge-blocking regression. 🚥 Pre-merge checks | ✅ 4 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (4 passed)
Full details: Out of Scope Changes checkExplanation The summary includes credential-classification changes associated with dependency 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: c015f6b1-9a18-49a3-ab39-a2e4aceb9596
📥 Commits
Reviewing files that changed from the base of the PR and between 9a56797 and 01ec9eec4694765eaf32e29263e6348d9cf9feb7.
📒 Files selected for processing (16)
src/main/rate-limits/claude-active-usage-fetch.tssrc/main/rate-limits/claude-fetcher-keychain-credentials.test.tssrc/main/rate-limits/claude-oauth-credentials.tssrc/main/rate-limits/claude-usage-error-classification.test.tssrc/main/rate-limits/claude-usage-error-classification.tssrc/renderer/src/components/settings/AccountsPane.tsxsrc/renderer/src/components/settings/accounts-pane-claude-section.tsxsrc/renderer/src/components/settings/accounts-pane-types.tssrc/renderer/src/components/settings/claude-account-auth-warning.test.tssrc/renderer/src/components/settings/claude-account-auth-warning.tssrc/renderer/src/components/status-bar/status-bar-provider-visibility.test.tssrc/renderer/src/components/status-bar/usage-error-copy.test.tssrc/renderer/src/components/status-bar/usage-error-copy.tssrc/renderer/src/components/status-bar/usage-roster-row-state.test.tssrc/renderer/src/components/status-bar/usage-roster-row-state.tssrc/shared/rate-limit-types.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
ℹ️ No new issues in this incremental delta.
Reviewed changes
- Loaded-roster gate —
systemClaudeNeedsSignInis now gated on a newclaudeAccountsLoadedflag so the System-default row can't flash a stalesigned-outwarning before the viewed runtime's snapshot arrives; the flag resets on runtime switch and mirrors the existing CodexcodexAccountsLoadedpattern. - Action-runner wiring —
syncClaudeAccountsmarks the roster loaded after account mutations, keeping the gate open for post-action state.
The two prior Pullfrog nitpick threads (duplicate Active + Needs sign-in badges; signed-out missing from getProviderUsageErrorMessage) remain open and unchanged by this commit.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
279885c to
609fe6b
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Active badge suppression — the System-default Claude row now hides the
Activebadge (systemClaudeActive && !systemClaudeNeedsSignIn) and switches the subtext totext-destructivewhenever the sign-in warning shows, so the row reads broken rather than both selected-healthy and broken. signed-outtooltip message —getProviderUsageErrorMessagenow returns the pattern-safe main-process message verbatim forsigned-out(with a documented rationale and a test), resolving the prior nitpick about the raw'Claude sign-in expired'string leaking into the tooltip.
Both prior Pullfrog nitpick threads are now addressed; the two changes are small, coherent, and each is pinned by a unit test.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No critical issues — one minor regression from the merge, inline.
Reviewed changes
- Merged
upstream/maininto the branch — the only commit since the last review is the mergef197ee561f; it pulls in a large upstream set (OpenCode Go / MiniMax API-key work, thehostContextbadge variant, theno-subscriptionfailure kind) without disturbing this PR's own logic. - PR logic survives the merge —
signed-outclassification, the CLI/PTY short-circuit, the roster-loaded gate, and the status-bar copy all still line up with the upstream versions of the shared files they touch; the PR's unit tests pass on the merged tree. - Badge styling dropped in merge resolution — the System-default Claude
Needs sign-inbadge is the one PR-owned line the merge changed, and it no longer matches the Codex badge it is meant to mirror (inline below).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
The upstream merge dropped the square chip classes from the Needs sign-in badge because the design-system gate rejects restyling Badge through className. Add a compact size to the Badge primitive and use it, so the badge again matches the Codex mirror without a restyle.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
The only commit since the prior pullfrog review is 35dba09e14, which cleans up the merge artifact flagged earlier and leaves the rest of the PR untouched.
- Compact sign-in badge restored — the System-default Claude
Needs sign-inchip is back to the square 16px geometry, matching the Codex mirror and the siblingActivebadge. The author fixed it by generalizing the primitive rather than pasting the Codex class string. - New
sizeaxis onBadge—badgeVariantsgainssize(default: '',compact: 'h-4 rounded px-1.5 text-[10px] leading-none'), threaded throughbadgeVariants({ variant, size }). Because the output runs throughcn(tailwind-merge), the compact classes correctly override the baserounded-full px-2 text-xs; default callers are unaffected. - Badge unit tests added —
badge.test.tsxpins both the default pill geometry and the compact chip (and that compact dropsrounded-full/px-2/text-xs), so the fix can't silently regress again.
Verified locally: pnpm test src/renderer/src/components/ui/badge.test.tsx passes (2/2) and pnpm run check:code-quality:changed origin/main reports 0 findings across all 19 changed files (design-system scan included). The prior inline thread on the badge is addressed and resolved.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Closing #20134 as stale after |

ELI5
The status-bar fix shows "not signed in" when Claude's stored login is emptied — but Settings → Accounts still showed the System default row as a healthy active login. This makes the Accounts pane agree with the meter, using the same warning pattern Codex already has.
What Changed
src/renderer/src/components/settings/claude-account-auth-warning.ts—getClaudeSystemDefaultSignInWarning, mirroringgetCodexAccountAuthWarning: true only when the system-default login is the active selection, the usage snapshot target matches the viewed runtime, and the snapshot reports thesigned-outfailure kind.AccountsPane.tsxderivessystemClaudeNeedsSignInfrom the local snapshot (limits: isRemoteAccountScope ? null : claudeRateLimits, so remote owners never inherit the desktop reading) and passes it into the section model.accounts-pane-claude-section.tsx: the System default row gets the Codex treatment — destructive border plus the existing "Needs sign-in" badge (AccountsPane.93c47b333a, reused, no new strings).signed-outsnapshot this consumes (branch contains its commits until it merges; diff narrows automatically).Why
Two components had two definitions of "logged in": the usage fetcher verified tokens while the Accounts pane asserted the environment login works without checking. Users saw "Active" in Settings and a dead meter with no path between them. Now both surfaces agree.
Linked Issue
Fixes #20131. Depends on #20120 — merge that first; this diff then narrows to the Accounts-pane commits.
Visual Proof
No screenshots: headless Linux worktree, affected surface is desktop Settings. Verified via unit tests (warning derivation incl. target-mismatch and remote-scope suppression) and the shared-badge render path already exercised by the Codex section. Happy to attach macOS shots on request.
Testing
claude-account-auth-warning.test.ts: signed-out→warn, managed-selection/other-kinds/non-error→quiet, target mismatch→quiet, remote scope handled by null limits at the call site)AI Disclosure
Implemented with Muse Spark via the Pi coding agent under the author's direction.
Review
Self-review (AI agent): mirrors the existing Codex warning path field-for-field (same badge key, same border classes, same remote-scope nulling); snapshot→row attribution guarded by target matching; no secrets touched (reads only status/failureKind); no perf impact (one store selector + boolean derivation on render).
Agent skill upstream boundary
Notes
Security, cross-platform, remote SSH (explicitly suppressed for remote owners per #7973), backwards compatibility, performance considered above. Mobile untouched.
Checklist
N/Awith reason (see Visual Proof)pnpm lint(changed-code quality gate: 0 findings),pnpm typecheck,pnpm testpass locally (pnpm buildcovered on the base branch; renderer-only delta)