claude-code - 💡(How to fix) Fix [BUG] "Clear Cache & Restart" signs out of account instead of clearing cache and restarting app (Windows) [1 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#56482Fetched 2026-05-06 06:26:53
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×4renamed ×1

Error Message

Error Messages/Logs

Root Cause

Additional Notes: Cache and authentication tokens are separate concerns and should be handled independently. A cache clear should target temporary app data only, not stored credentials or session tokens. This is likely caused by auth tokens being stored in the same storage layer that gets wiped during the cache clear operation.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Describe the bug: Using Help → Troubleshoot → Clear Cache & Restart signs the user out of their account completely instead of only clearing the app cache and restarting. Expected behavior is to clear cache and reload the app while preserving the authenticated session.

Actual Behavior: User is fully signed out after the operation. Auth session is lost, requiring re-authentication via Google Sign-In.

What Should Happen?

Expected Behavior: App clears its cache and restarts while keeping the user logged in, session/auth tokens should not be affected by a cache clear operation.

Error Messages/Logs

Steps to Reproduce

To Reproduce:

  • Sign in to Claude using Google Sign-In
  • Navigate to Help → Troubleshoot → Clear Cache & Restart
  • Click the option
  • App restarts — user is signed out and returned to the login screen

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

Claude 1.5354.0 (9a9e3d) 2026-04-29T01:14:34.000Z

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

Additional Notes: Cache and authentication tokens are separate concerns and should be handled independently. A cache clear should target temporary app data only, not stored credentials or session tokens. This is likely caused by auth tokens being stored in the same storage layer that gets wiped during the cache clear operation.

Reference / Comparison: Postman (which shares the same underlying base UI) performs the identical Clear Cache & Restart operation correctly, it clears the cache and reloads the app without signing the user out. This confirms the expected behavior is achievable and that Claude's implementation is likely clearing auth-related storage (e.g. localStorage, sessionStorage, or cookies) alongside the intended cache.

<img width="887" height="1001" alt="Image" src="https://github.com/user-attachments/assets/7114240a-90bb-4af3-9605-19d397baa3e2" />

extent analysis

TL;DR

The issue can likely be fixed by separating the storage of authentication tokens from the cache, ensuring that cache clearing operations do not affect user session data.

Guidance

  • Review the implementation of the Clear Cache & Restart feature to identify where authentication tokens are being stored and cleared.
  • Verify that the cache clearing operation is not inadvertently targeting storage layers containing authentication tokens, such as localStorage, sessionStorage, or cookies.
  • Consider using a separate, dedicated storage mechanism for authentication tokens that is not affected by cache clearing operations.
  • Compare the implementation with Postman's approach to Clear Cache & Restart, as it achieves the expected behavior without signing the user out.

Example

No specific code example can be provided without more details on the current implementation, but the fix would involve modifying the cache clearing logic to exclude authentication token storage.

Notes

The exact solution depends on the specifics of how Claude Code stores and manages authentication tokens and cache data. Ensuring separation of concerns between these two types of data is key to resolving the issue.

Recommendation

Apply a workaround by modifying the cache clearing operation to preserve authentication tokens, as the issue is likely due to the current implementation clearing both cache and authentication data simultaneously. This approach allows for a targeted fix without requiring a version upgrade.

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] "Clear Cache & Restart" signs out of account instead of clearing cache and restarting app (Windows) [1 participants]