[Bug]: Signed-out Claude instance shows as authenticated and ready, so every turn fails #16130
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- Add a second Claude provider instance with its own
homePath, e.g.~/.claude_dev_home(exported asCLAUDE_CONFIG_DIR). - Let that config dir become signed out. Here the OAuth session was lost on its own;
CLAUDE_CONFIG_DIR=~/.claude_dev_home claude auth logoutgives the same state. - Confirm the CLI agrees it is signed out:
CLAUDE_CONFIG_DIR=~/.claude_dev_home claude auth statusreports"loggedIn": false, "authMethod": "none". - Wait for the next provider status refresh, then send messages in threads on that instance.
Expected behavior#
The status check marks the instance unauthenticated. The picker and settings show it as signed out with the claude auth login hint before anyone sends a message.
Actual behavior#
The instance stays status: "ready", auth.status: "authenticated" (from the cached provider status, refreshed every few minutes while the CLI says signed out). Every turn on it fails with:
Claude could not authenticate. For subscription login, run
claude auth loginon this environment's machine … with CLAUDE_CONFIG_DIR set to "…/.claude_dev_home", then start a new thread.
Nothing in the UI flags the instance, so it looks healthy and gets retried. Over about 15 minutes, every turn in three threads failed this way before the cause was found.
Cause#
probeClaudeCapabilities reads init.account from the SDK initialization result. A signed-out first-party CLI still finishes initialization and returns:
{ "tokenSource": "none", "apiProvider": "firstParty" }
(no email, no subscriptionType). checkClaudeProviderStatus only treats a missing capabilities object as unverified (L570). Any other result falls through to status: "authenticated" (L620), whatever tokenSource says.
A possible fix: when apiProvider is firstParty (or absent) and tokenSource is none, with no API key in effect, return auth: { status: "unauthenticated" } and the sign-in hint instead of ready. Bedrock leaves the Anthropic token fields empty because it authenticates with AWS credentials, so the check should stay limited to first-party.
#7878 fixed how the failed turn is shown. This report is about the status check that should prevent those turns.
Impact#
Major degradation or frequent failure
Version or commit#
T3 Code (Alpha) desktop 0.0.45; code above checked against main @ 31f9d832f
Environment#
macOS 26.6.2, Claude Code 2.1.289, two claudeAgent instances (default home and a homePath instance)
Workaround#
Run CLAUDE_CONFIG_DIR=<homePath> claude auth login, then start a new thread.
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Note
🤖 Claude Opus 5.5 responding on behalf of Theo
Thanks for the report. This is fixed on main in #15459. Please test on the nightly built from main on 2026-10-21, or on the next stable release. If the problem still occurs there, please open a new issue that links to this one, with your version and steps to reproduce it.