Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug] Claude provider reported as "authenticated" when not logged in (hides the Sign in flow)

Aperta Adatta ai principianti
#14,186 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Inizia in apps/server/src/provider/Layers/ClaudeProvider.ts, in checkClaudeProviderStatus, e segui i dati restituiti da probeClaudeCapabilities. Verifica il caso non autenticato descritto da claude auth status, quindi assicurati che il provider segnali uno stato non autenticato quando i segnali dell’account sono assenti ed esponga l’azione Sign in; gli account Claude autenticati e Bedrock devono mantenere il loro stato autenticato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

T3 Code reports the Claude provider as authenticated even when the Claude Code CLI is
not logged in. This hides the "Sign in" affordance and misleads users. Codex on the same
machine correctly reports "Not authenticated".

Environment

  • T3 Code server v0.0.42, mode web, launched with t3 serve --host 0.0.0.0
  • Claude Code CLI 2.1.284 (also reproduced on 2.1.283), Linux x64 (container)
  • claude auth status returns:
    { "loggedIn": false, "authMethod": "none", "apiProvider": "firstParty", "configDirectory": "/home/t3/.claude" }
    
  • No ~/.claude/.credentials.json exists; ~/.claude.json contains only anonymous
    machineID/userID (no credentials).

Steps to reproduce

  1. On a machine where claude is installed on PATH but has never been logged in.
  2. Start the T3 server and open the web app → Claude is shown as Authenticated
    (with a version advisory but no email/subscription), and no Sign in button appears.

Expected

Claude should be shown as Not authenticated (with a Sign in action) until the user logs
in — matching Codex's behavior.

Actual

Claude is shown as status: ready / auth.status: "authenticated" even though no account is
present, so the Sign in flow is never offered.

Root cause (pointer)

apps/server/src/provider/Layers/ClaudeProvider.ts → checkClaudeProviderStatus sets the
probe's auth to { status: "authenticated" } whenever the capability probe returns a value
(if (!capabilities) { … warning … } then unconditionally auth: { status: "authenticated" }),
without checking whether the account is actually logged in. The probe
(probeClaudeCapabilities) returns initialization data even when unauthenticated (account
fields absent), so capabilities is truthy and the provider is marked authenticated.

Suggested fix

Only mark the provider authenticated when the probe yields real auth signals (a non-empty
email, a subscriptionType, a subscription tokenSource, or apiProvider === "bedrock");
otherwise report unauthenticated (with status that surfaces the Sign in action), so the
UI offers claude auth login.

Impact

On shared/hosted machines (e.g. one server per user behind a proxy), users cannot discover how
to sign in from the UI and must know to run claude auth login in a terminal.

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
11h 33m
PR unite (30g)
312

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pingdotgg/t3code

Tutte le issue di pingdotgg/t3code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.