claude-code - 💡(How to fix) Fix [BUG] Cowork shows "Not logged in · Please run /login" — persists across v1.3561.0 to v1.3883.0 [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#51748Fetched 2026-04-22 07:53:53
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

Cowork mode in Claude Desktop shows "Not logged in · Please run /login" on every message sent. Chat mode and Code mode work fine without any issues. The error appears immediately after sending any message in Cowork, regardless of the content. This has persisted across multiple app versions (v1.3561.0 through v1.3883.0) and survives a complete fresh uninstall/reinstall. The error is consistent and reproducible — there is no workaround. The error message itself suggests running /login, but Cowork does not accept slash commands, making the error message unhelpful.

Error Messages/Logs

UI Error Message: 7. Actual: Error appears: "Not logged in · Please run /login" The error originates after the VM successfully connects — when Claude Desktop attempts to pass authentication credentials into the Cowork VM. The is_resume: true flag in the error log suggests the VM is trying to resume a cached session that may be invalid or revoked on the server side.

Root Cause

What's Broken:

  • Cowork authentication: API rejects every message with api_error: 'Not logged in'
  • Root cause: The VM is healthy and reachable, but the credential pipeline from Claude Desktop to the VM is broken

Fix Action

Fix / Workaround

The error is consistent and reproducible — there is no workaround. The error message itself suggests running /login, but Cowork does not accept slash commands, making the error message unhelpful.

Code Example

From main.log (Claude Desktop):
2026/04/21 13:48:25 [Result] Turn failed for session [REDACTED]: subtype=success, is_error=true
2026/04/21 13:48:25 [CycleHealth] Unhealthy cycle: {
  cycle_health: 'unhealthy',
  had_first_response: true,
  unhealthy_reason: 'api_error',
  error_message: 'Not logged in · Please run /login',
  is_resume: true
}

From cowork_vm_node.log (VM startup — healthy):
[info] [VM:start] Startup complete, total time: 8500ms
[info] [postConnect] Installing SDK: version=2.1.111
[info] [VM] API reachability: REACHABLE

From coworkd daemon log (VM infrastructure — healthy):
[coworkd] checking reachability https://api.anthropic.com/ (timeout=30s)
[coworkd] reachability check passed (status=404)
[coworkd] connected, waiting for commands
[coworkd] SDK binary v2.1.111 already installed, skipping

UI Error Message:
Not logged in · Please run /login
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?

Cowork mode in Claude Desktop shows "Not logged in · Please run /login" on every message sent. Chat mode and Code mode work fine without any issues. The error appears immediately after sending any message in Cowork, regardless of the content. This has persisted across multiple app versions (v1.3561.0 through v1.3883.0) and survives a complete fresh uninstall/reinstall.

The error is consistent and reproducible — there is no workaround. The error message itself suggests running /login, but Cowork does not accept slash commands, making the error message unhelpful.

What Should Happen?

Cowork should accept the user's message and execute it without authentication errors. Prior to 4/20/2026 midday, Cowork was functioning normally.

Error Messages/Logs

From main.log (Claude Desktop):
2026/04/21 13:48:25 [Result] Turn failed for session [REDACTED]: subtype=success, is_error=true
2026/04/21 13:48:25 [CycleHealth] Unhealthy cycle: {
  cycle_health: 'unhealthy',
  had_first_response: true,
  unhealthy_reason: 'api_error',
  error_message: 'Not logged in · Please run /login',
  is_resume: true
}

From cowork_vm_node.log (VM startup — healthy):
[info] [VM:start] Startup complete, total time: 8500ms
[info] [postConnect] Installing SDK: version=2.1.111
[info] [VM] API reachability: REACHABLE

From coworkd daemon log (VM infrastructure — healthy):
[coworkd] checking reachability https://api.anthropic.com/ (timeout=30s)
[coworkd] reachability check passed (status=404)
[coworkd] connected, waiting for commands
[coworkd] SDK binary v2.1.111 already installed, skipping

UI Error Message:
Not logged in · Please run /login

Steps to Reproduce

  1. Open Claude Desktop (v1.3883.0 or later)
  2. Log in to your account (Chat and Code modes confirm successful login)
  3. Switch to Cowork mode (visible in the mode switcher)
  4. Type any message (e.g., "hello")
  5. Send the message
  6. Expected: Cowork executes the message
  7. Actual: Error appears: "Not logged in · Please run /login"

Reproducibility: 100% — happens on every message in Cowork mode

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

v1.3561.0 (worked up to 4/20/2026 midday)

Claude Code Version

Claude Desktop v1.3883.0 (93ff6c) 2026-04-21T17:24:01.000Z

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Troubleshooting Already Completed:

  • Logout/login cycle
  • Close and reopen app
  • Full uninstall and fresh reinstall from website
  • Computer restart
  • Clear browser cache and cookies
  • Delete VM bundles directory
  • Delete local session data (local-agent-mode-sessions, claude-code-vm)
  • Verified environment variables empty
  • Confirmed CoworkVMService running
  • Update to latest version v1.3883.0

What Works:

  • Chat mode: Functions normally without errors
  • Code mode: Functions normally without errors
  • Cowork VM infrastructure: Boots successfully, connects to network, reaches api.anthropic.com
  • Account login: User is logged in correctly (Chat/Code functional)

What's Broken:

  • Cowork authentication: API rejects every message with api_error: 'Not logged in'
  • Root cause: The VM is healthy and reachable, but the credential pipeline from Claude Desktop to the VM is broken

Key Insight: The error originates after the VM successfully connects — when Claude Desktop attempts to pass authentication credentials into the Cowork VM. The is_resume: true flag in the error log suggests the VM is trying to resume a cached session that may be invalid or revoked on the server side.

Environment Details:

  • OS: Windows 11
  • Plan: Claude Max
  • Network: No VPN, no proxy, no firewall blocks
  • No subscription changes between working and broken state

Hypothesis: This appears to be either:

  1. A server-side regression in Cowork's OAuth client or credential handling
  2. An account-level credential issue where Cowork's auth token is broken/revoked but Chat/Code tokens are valid
  3. A session resumption bug where the VM cannot validate its cached session token with the server

The fact that Chat and Code modes work fine, while Cowork fails specifically and consistently, suggests the issue is in Cowork's separate authentication pipeline, not the user's account or local Claude Desktop state.

extent analysis

TL;DR

The most likely fix involves addressing the broken credential pipeline from Claude Desktop to the Cowork VM, potentially by resolving a server-side regression in Cowork's OAuth client or credential handling.

Guidance

  1. Investigate server-side changes: Review recent updates to the Cowork OAuth client or credential handling to identify potential regressions introduced around 4/20/2026 midday.
  2. Verify account credentials: Check if the issue is account-specific by testing Cowork mode with a different user account to determine if the problem is widespread or isolated.
  3. Session resumption debugging: Focus on the is_resume: true flag in the error log to understand why the VM is attempting to resume a potentially invalid or revoked session, and how this can be corrected.
  4. Compare authentication pipelines: Since Chat and Code modes work fine, compare their authentication pipelines with Cowork's to identify differences that might be causing the issue.

Example

No specific code snippet can be provided without more details on the implementation, but debugging the session resumption process might involve checking how the is_resume flag is set and how the cached session token is validated with the server.

Notes

The issue seems to be specific to the Cowork mode and its authentication pipeline, suggesting that the problem might not be with the user's account or local Claude Desktop state but rather with how Cowork handles credentials or resumes sessions.

Recommendation

Apply a workaround by attempting to disable session resumption in the Cowork VM to see if this resolves the authentication issue, as this might indicate a problem with how sessions are being cached or resumed.

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