Skip to content

[BUG] Forced to Reauth after sleep #59937

Closed as not planned
Closed as not planned

Description

@ulearn

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?

After a long sleep away from a conversation I come back I run claude again it gives me the options:

resume from summary recommended or
resume full conversation (warns about token usage)

If I resume from summary and do a Compact it will run fine but if I try to run from full session again it'll 401 and then I will always be forced to log in again & re-authenticate

It happens every single time every day on all session across my server (various claude instances)and I am always using the same computer & location

=> long-sleep + full-conversation resume → forced re-OAuth, not just refresh

What Should Happen?

I should be able to resume my conversation without Compacting - was able to previously

Error Messages/Logs

Steps to Reproduce

=> long-sleep + full-conversation resume → forced re-OAuth, not just refresh

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.143

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Activity

  1. added
    bug
    on May 17, 2026
  2. added
    platform:windows
    platform:vscode
    on May 17, 2026
  3. github-actions commented on May 17, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. [Bug] OAuth token expiration causing repeated 401 authentication errors during active sessions #18225
    2. [BUG] /usage hangs indefinitely after OAuth token expires (idle session) #41955
    3. [Bug] CLI session authentication expires prematurely requiring re-authentication #51177

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  4. added
    stale
    on Jun 1, 2026
  5. github-actions commented on Jun 16, 2026

    @github-actions

    Closing for now — inactive for too long. Please open a new issue if this is still relevant.

  6. github-actions commented on Aug 18, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  7. locked as resolved and limited conversation to collaborators on Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authbugplatform:vscodeplatform:windowsstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions