Repository navigation
Description
What happened
On macOS, a Claude provider instance backed by a real, working subscription login is reported as "Claude Code is not authenticated. Run claude auth login and try again." — and because auth.status === "unauthenticated" blocks thread creation, Claude is unusable in T3 Code.
This happens both for the default ~/.claude home and for an explicit homePath (e.g. /Users/Admin/.claude-account2). So homePath / CLAUDE_CONFIG_DIR is not the trigger — the account itself is fine.
The decisive evidence: the exact same SDK initialize handshake, run outside T3 with the same binary, same args, same env and same CLAUDE_CONFIG_DIR, succeeds in 333 ms and returns a populated account:
{ "email": "193****@proton.me", "organization": "...", "subscriptionType": "Claude Pro", "apiProvider": "firstParty" }So the account is signed in and the claudeAuthStatus() verdict would be authenticated — the capability probe simply never produces that result inside T3.
claude auth status for the same config dir:
{ "loggedIn": true, "authMethod": "claude.ai", "apiProvider": "firstParty",
"email": "193****@proton.me", "subscriptionType": "pro", "planTier": "pro",
"configDirectory": "/Users/Admin/.claude-account2", "storedClaudeAiLogin": true }Evidence from server.trace.ndjson
checkClaudeProviderStatus completes and returns unauthenticated, yet inside its span only the --version command shows up. In a failing trace:
| span | duration |
|---|---|
checkClaudeProviderStatus |
1265.3 ms |
└ runClaudeCommand (claude --version) |
245.8 ms |
snapshotProbe.spawnAndCollect |
20.9 / 245.7 ms |
No long-running capabilities-probe session appears anywhere in the span. Other runs are shorter still (330.6 ms, 4508.6 ms) with the same outcome. The verdict is cached as:
{ "status": "error", "auth": { "status": "unauthenticated" },
"message": "Claude Code is not authenticated. Run `claude auth login` and try again." }That message is the generic branch of checkClaudeProviderStatus, i.e. the configDir === void 0 arm — meaning the probe result was undefined entirely, not "probe ran and said unauthenticated". That matches probeClaudeCapabilities throwing ClaudeCapabilitiesProbeSdkError({ operation: "initialize" }) and being swallowed into capabilities = undefined.
Steps to reproduce
- macOS, T3 Code 0.1.11 (desktop, local server).
- Claude Code 2.1.330 installed globally via npm;
which claude→~/.npm-global/bin/claude. - Sign in with a Claude Pro subscription:
claude auth login. Confirmclaude auth status→loggedIn: true. - In T3, open Settings → Providers. Claude shows "Claude Code is not authenticated".
- Point the Claude instance's
CLAUDE_CONFIG_DIR/ home path at a second signed-in config dir. Same result. - Try to start a Claude thread → blocked ("Provider is not authenticated.").
Control experiment (works)
Reproducing T3's probe options outside T3, with the same args and env, always succeeds:
const env = { ...process.env,
CLAUDE_CONFIG_DIR: '<config dir>',
ENABLE_CLAUDEAI_MCP_SERVERS: 'false',
CLAUDE_CODE_AUTO_CONNECT_IDE: '0',
CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL: '1' };
const child = spawn('claude', [
'--output-format','stream-json','--verbose','--input-format','stream-json',
'--permission-prompt-tool','stdio',
'--setting-sources','user,project,local',
'--strict-mcp-config',
], { env, cwd: <workspace>, stdio: ['pipe','pipe','pipe'] });
child.stdin.write(JSON.stringify({
type: 'control_request', request_id: '1',
request: { subtype: 'initialize', hooks: null }
}) + '\n');
// → control_response with account in 333 msThings already ruled out:
- Account / token:
claude -pworks and returns real output through the same proxy. - Proxy env: the T3 server process carries an inherited
HTTPS_PROXY. Running the control experiment with that exact proxy still succeeds. homePathconfig: the value is present and not overwritten by T3 in settings.json.- CLI version regression: tried Claude Code 2.1.300 and 2.0.77 —
accountis absent from-pinit events in every version, but present in the SDKinitializecontrol response. So-pinit output is not a valid proxy for the SDK path. - Timeout: the probe timeout is 25 s; the control experiment finishes in 333 ms.
- Keychain: the config-dir-specific keychain item (
Claude Code-credentials-<hash>) holds a valid refresh token; macOS reads keychain rather than.credentials.json, and the CLI resolves it correctly outside T3.
Possibly related
- Idle Claude profile is signed out at every token refresh (capabilities probe may abort Claude Code mid-refresh) #40466 — idle Claude profile signed out at token refresh; reports
checkClaudeProviderStatusspans too short to include a capabilities probe. - fix(server): Claude status starts the capabilities probe alongside claude --version #40192 / Claude status on Windows waits ~280 ms for
claude --versionbefore starting the capabilities probe, on every start and Refresh #40141 — Claude status serializes the capabilities probe behindclaude --version. That explains the latency shape seen here, though this report is about the probe never yielding a result at all rather than being slow. - Explicit ~/.claude Claude home path switches to a different keychain login (API key instead of subscription) #29674 — explicit
homePathswitching keychain logins. Not the cause here: the default~/.claudefails identically.
Version
T3 Code 0.1.11 (desktop), server 0.1.11. Claude Code 2.1.330. Claude Agent SDK 0.3.321.
Environment
macOS 26.4.1 (arm64), Node v24.18.0, npm 11.16.0. Claude Code installed with npm i -g @anthropic-ai/claude-code (~/.npm-global/bin/claude → .../bin/claude.exe, a native Mach-O binary with no cli.js). Desktop app, local server, Claude Pro subscription signed in via claude.ai.
Activity
leandroVistra commentedon Nov 27, 2026
Not reproducible here on 0.1.13 (macOS arm64,
t3 serveagainst an empty--base-dir), Claude Code 2.1.318 from the native installer (~/.local/bin/claude), default~/.claude, Max subscription, no proxy.checkClaudeProviderStatustook about 1 s and the cached status isready/authenticatedwith the plan detected, so the capabilities probe returned a result.The "not authenticated" fallback in
ClaudeProvider.tsis unchanged since 0.1.11, so this only narrows the trigger. It doesn't confirm a fix. Remaining differences from the report: npm-global install, an inheritedHTTPS_PROXY, the desktop app, and a Pro plan. Does it still happen for you on 0.1.13?photonclock commentedon Nov 29, 2026
Exact same behavior here. Clause v2.1.332, T3 Version 0.1.13 (bc0f04d)
Noteworthy (but I have no idea if it's related). My last session was a remote session from my iPad to the mac mini indicating claude not authenticated. My laptop remains authenticated. The mac mini showing not authenticated works fine - I'm chatting w claude now. I tried the
claude auth logincommand, got a token, but that had no effect on T3 Code. It still shows a red dot and "Not authenticated".Also, this behavior is new for me: only noticed it today. The only reason I noticed it was because T3 indicated Antigravity couldn't be updated because it wasn't logged in. I auth'd Antigravity, then noticed Claude indicated not auth'd.