claude-code - 💡(How to fix) Fix [BUG] Desktop sidebars empty until sign-out/sign-in cycle (Windows MSIX, v1.4758.0.0) — likely stale auth state after CLI install/uninstall [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53158Fetched 2026-04-26 05:22:55
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×4commented ×1cross-referenced ×1subscribed ×1

Error Message

  1. No error appears. App looks healthy, just no sidebar content.

Root Cause

Likely root cause: Stale auth/token state. The token continued authenticating successfully for most queries (analytics, account info, model configs) but the specific data path feeding the sidebars returned empty without erroring. Sign-out/sign-in invalidated and rebuilt the auth state cleanly.

Code Example

endpoint: /api/organizations/<org-id>/model_configs/claude-opus-4-7[1m]
RAW_BUFFERClick to expand / collapse

What's Wrong?

Both Code and Chat sidebars in Claude Desktop showed completely empty for ~2 days despite:

  • Local session files present on disk (62 sessions in claude-code-sessions/)
  • Main process successfully loading them (main.log: Loaded 62 persisted sessions)
  • Same account working correctly on claude.ai in browser
  • No 401/403 errors anywhere — auth appeared valid
  • Analytics, model picker, and account lookup all working fine

Resolution that worked: Sign out of Desktop, sign back in. Both sidebars repopulated immediately on next launch.

Likely root cause: Stale auth/token state. The token continued authenticating successfully for most queries (analytics, account info, model configs) but the specific data path feeding the sidebars returned empty without erroring. Sign-out/sign-in invalidated and rebuilt the auth state cleanly.

Suspected trigger: Side-by-side install of @anthropic-ai/claude-code standalone CLI (~Apr 22-23), which shares ~/.claude/.credentials.json with Desktop. CLI was uninstalled shortly after due to known Desktop-launch conflict, but the credential state appears to have remained subtly poisoned for Desktop until a fresh sign-in.

Why this matters as a bug report: The failure mode is silent. No errors, no warnings, no banner. Sidebar just renders empty. Users have no way to know "sign out and back in" is the fix — at least 5 open/duplicate issues describe this same symptom (#50856, #43674, #47522, #22723, #48495) and none of them mention sign-in/sign-out as a resolution. This is a discoverability problem on top of a state-management bug.

Steps to Reproduce (likely)

  1. Have Claude Desktop installed and signed in, working normally
  2. Install standalone @anthropic-ai/claude-code CLI
  3. Use or uninstall the CLI (either may trigger the credential state change)
  4. Restart Desktop — sidebars now empty despite local sessions existing
  5. No error appears. App looks healthy, just no sidebar content.

Expected Behavior

Either (a) Desktop detects stale auth and prompts for re-sign-in, (b) the sidebar query handles the stale-but-non-erroring state gracefully, or (c) at minimum a "Could not load sessions — try signing out and back in" banner appears.

Environment

  • Claude Desktop 1.4758.0.0 (Windows MSIX, Claude_pzs8sxrjxfjjc)
  • Windows 11
  • Auth: OAuth (claude.ai account)
  • CLI history: @anthropic-ai/claude-code installed and uninstalled ~Apr 22-23

Additional Findings (Separate But Worth Noting)

claude.ai-web.log contains repeated errors with ANSI escape codes leaking into URL paths:

endpoint: /api/organizations/<org-id>/model_configs/claude-opus-4-7[1m]

The [1m] is an ANSI bold-on escape sequence being interpolated into the model ID. Returns 404, fires in tight loops. Same pattern appeared earlier with claude-opus-4-6[1m]. This is a separate renderer bug — not the cause of the empty sidebar — but suggests there's a logger/format-string hygiene issue in URL construction somewhere.

Related Issues

#50856, #43674, #47522, #22723, #48495 — same/similar empty-sidebar symptoms, all unresolved or closed-as-duplicate

extent analysis

TL;DR

Signing out and back into Claude Desktop likely resolves the empty sidebar issue caused by stale auth/token state.

Guidance

  • Verify that the issue is related to the installation or uninstallation of the @anthropic-ai/claude-code CLI, which shares the ~/.claude/.credentials.json file with Desktop.
  • Check the main.log for successful loading of persisted sessions to confirm that the issue is not with session loading.
  • Attempt to reproduce the issue by following the provided steps, and verify that signing out and back in resolves the problem.
  • Consider implementing a detection mechanism for stale auth states to prompt users for re-sign-in or handle the state change gracefully.

Example

No code snippet is provided as the issue is related to authentication state management and does not require a specific code change.

Notes

The issue is specific to the interaction between the Claude Desktop and the @anthropic-ai/claude-code CLI, and the provided steps to reproduce are likely to help identify the root cause. The separate issue with ANSI escape codes in URL paths is noted but not directly related to the empty sidebar problem.

Recommendation

Apply the workaround of signing out and back into Claude Desktop when encountering the empty sidebar issue, as it has been reported to resolve the problem. This is a temporary solution until a more permanent fix for the stale auth/token state issue is implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Desktop sidebars empty until sign-out/sign-in cycle (Windows MSIX, v1.4758.0.0) — likely stale auth state after CLI install/uninstall [1 comments, 2 participants]