Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: docs/providers/claude.md still documents HOME-based Claude homes, but the app now uses CLAUDE_CONFIG_DIR — breaks logins for existing multi-account setups #4696

ClosedKhannor-PS(GitHub profile, opens in a new tab) opened this issue 4 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

Docs

Steps to reproduce

  1. Following docs/providers/claude.md, set up a second Claude provider instance with a Claude HOME path (e.g. ~/.claude_work_home) and log it in as the docs describe: HOME=~/.claude_work_home claude auth login
  2. Update T3 Code (observed on 0.0.29, Claude CLI 2.1.220)
  3. Send a message on a thread that uses that provider

Expected behavior

The provider keeps working after the update, or the docs describe how to migrate / re-login.

Actual behavior

Every turn fails with Not logged in · Please run /login (authentication_failed in the provider logs), while the Providers panel still shows the instance as "Authenticated".

Cause: the app now launches Claude with CLAUDE_CONFIG_DIR=<home path> instead of HOME=<home path>. That changes two things for pre-existing setups:

  • the config root moves from <path>/.claude/ to <path>/ directly, so existing settings, skills, plugins, and session history are no longer found;
  • the macOS Keychain entry Claude reads changes (Claude Code-credentials-<first 8 hex of sha256(path)> instead of the entry the old HOME-based launch used), so existing credentials are not found either.

The docs still describe the old behavior. Worse, the documented login command (HOME=... claude auth login) writes credentials to the default home — so a user trying to fix the broken provider can silently overwrite their other account's credentials while never fixing the broken one (this happened to me).

Impact

Major degradation or frequent failure — multi-account users cannot send messages on the affected provider after updating, and following the documented login flow makes things worse.

Version or commit

T3 Code (Alpha) 0.0.29, Claude CLI 2.1.220

Environment

macOS 15 (Darwin 24.5.0), desktop app

Logs or stack traces

"error":"authentication_failed","is_api_error_message":true
"result":"Not logged in · Please run /login","type":"result"

Workaround

CLAUDE_CONFIG_DIR=~/.claude_work_home claude   # then run /login in the session

plus manually copying settings.json, skills/, plugins/, and projects/ from <home>/.claude/ to <home>/.

Suggested doc fix: update the login commands in docs/providers/claude.md to use CLAUDE_CONFIG_DIR=... instead of HOME=..., and add a short migration note for setups created before the change.

  1. Same happening with 0.0.30. It is not worth the hassle, so pinned my version to 0.0.28.

  2. Also failing on previous version, workaround on windows for me was to set set CLAUDE_CONFIG_DIR=C:\Users\username\claude-second\.claude-second, set same env var in T3-Code, and disconnect/reconnect second claude provider.

    But the bug now seems to be fixed in 0.0.32 nightly, at least for new profiles we can have both sitting at C:\Users\username\.claude and C:\Users\username\.claude-second

  3. Partial status update, in case it helps triage: the doc file named in this issue no longer exists.

    docs/providers/claude.md now 404s — the guide lives at docs/user/providers-claude.md, and it already teaches the correct flow: CLAUDE_CONFIG_DIR=~/.claude_personal_home claude auth login, a "work and personal accounts" section, and an explicit "Use CLAUDE_CONFIG_DIR, not HOME" note. So the primary ask of this issue (stop documenting HOME-based homes) appears already done.

    What still looks unaddressed:

    1. No migration note for HOME-era setups. Someone who configured a home before the change has their config root at <path>/.claude/, and nothing tells them to move settings.json, skills/, plugins/, projects/ up into <path>/ and re-login through CLAUDE_CONFIG_DIR.
    2. No warning about the destructive old command. HOME=... claude auth login writes credentials to the default home, so following the old instructions to "fix" a broken instance silently overwrites the other account's login while leaving the broken one broken. That's the part that actually costs people an account, and it's worth one bold line in the guide.

    For whoever picks this up, the current behavior in the 0.0.32 bundle is unambiguous — no HOME fallback remains anywhere in the Claude driver:

    • ClaudeSettings.homePath (UI: "CLAUDE_CONFIG_DIR path") is exported as CLAUDE_CONFIG_DIR by makeClaudeEnvironment; HOME is untouched.
    • thread continuation key is claude:home:<resolved path>, and the capabilities cache key is binaryPath \0 resolvedHome \0 cwd.

    And the resulting on-disk layout, confirmed with Claude Code 2.1.226 (CLAUDE_CONFIG_DIR=/tmp/probe claude -p ...): .claude.json, projects/, sessions/, backups/ are created directly in the config dir, with no nested .claude/ — which is exactly why HOME-era directories stop resolving.

  4. Note

    🤖 GPT-5.6 Sol in Codex responding on behalf of Theo

    Closing as resolved. The replacement Claude guide documents CLAUDE_CONFIG_DIR and separate accounts.

Sign in to join this conversation.