[Bug]: ACP sign-in replaces the agent's error message with a generic one

Aperta Adatta ai principianti
#30,218 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@iScabrous ci sta già lavorando.

Dal 3/11/2026.

  • #30295 di @iScabrous — aperta
  • #30321 di @Mohsintl — chiusa senza merge

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
85/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Inizia in packages/provider-acp-registry/src/server/auth.ts, in failure() e nel percorso di verifica della sessione dopo l'accesso, per vedere dove viene usata la stringa di dettaglio fissa e come AcpRequestError viene propagato tramite cause. Riproduci il problema da Settings → Providers con un provider ACP a comando locale il cui authenticate restituisce un messaggio di errore JSON-RPC. Il lavoro è completato quando sia l'errore di accesso sia l'errore di verifica successivo all'accesso mostrano il messaggio dell'agente insieme al dettaglio generico.

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

Descrizione

bug needs-triage
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
  1. Add a local-command ACP provider whose authenticate answers with a JSON-RPC error that has a message, e.g. {"code": -32000, "message": "Connect to the VPN, then sign in again."}
  2. Open Settings → Providers, select the provider, and press Sign in.
Expected behavior

The card shows the agent's message, so the user knows what to do, e.g. "The ACP agent could not complete sign-in. Connect to the VPN, then sign in again."

Actual behavior

The card shows only "The ACP agent could not complete sign-in." The agent's message is kept on the error's cause but never shown, because failure() in packages/provider-acp-registry/src/server/auth.ts uses the fixed detail string for every failure. The post-sign-in verify step ("The provider could not create a session after sign-in.") hides it the same way.

Appending the AcpRequestError's message to the detail in failure() would fix both.

Impact

Minor bug or occasional failure

Version or commit

main @ cefb544af3

Environment

macOS 26, desktop app, a local-command ACP agent

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

None in the app; the reason only appears in the server's logs.

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
13h 48m
PR unite (30g)
208

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.