[BUG] Advisor: a response that stops with pause_turn ends the turn with error_during_execution in -p / stream-json (2.1.326)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- backend-api-design, cli
Direzione di ricerca
Start by tracing how non-interactive -p runs handle API responses with stop_reason: "pause_turn", including both JSON output and stream-json input/output paths. Reproduce with the advisor configured and 12 consecutive calls, then compare with a 9-call run. Done means the paused turn resumes and completes in both modes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Claude Code 2.1.326, non-interactive (-p, with --output-format json, and with --input-format stream-json --output-format stream-json).
After a run of about 10 advisor (server tool) calls with no client tool between them, the API stops the response with stop_reason: "pause_turn". Claude Code then ends the turn with error_during_execution instead of resuming it:
{"type":"result","subtype":"error_during_execution","is_error":true,"stop_reason":"pause_turn",
"errors":["[ede_diagnostic] result_type=assistant last_content_type=server_tool_use stop_reason=pause_turn"]}
Repro (with advisorModel set, e.g. fable):
claude -p --model opus "Call your advisor tool exactly 12 times, one call after another. Between calls write only the line 'advisor call N done'. Use no other tools."
Expected: the paused turn is resumed and finishes.
Seen: exit 1 after 10 calls (-p, json) and after 11 calls (stream-json in and out). Runs asking for 9 calls succeed.
- Lingua principale
- TypeScript
- Stelle
- 156k
- Fork
- 25k
- Merge medio
- 16h 19m
- PR unite (30g)
- 5
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di anthropics/claude-code
-
area:hooks area:plugins bug has repro platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anthropics/claude-code#111771 ·
-
area:docs bug documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anthropics/claude-code#111658 ·
-
area:core bug platform:linux platform:wsl regression
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
anthropics/claude-code#111548 ·
-
area:vscode bug has repro platform:vscode platform:windows
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
anthropics/claude-code#111416 ·
-
PromptHint: engine draws " · " after the mode label even when a hook's rewritten hint is emptyApertaarea:plugins area:tui bug platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
anthropics/claude-code#111195 ·
Tutte le issue di anthropics/claude-code
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
External sources always come back in English: `lc` isn't passed to `/api/v3/external_sources`Forse già presa @Anurag1428 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
openfoodfacts/openfoodfacts-explorer#2264 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
cloudflare/workers-sdk#17139 ·
I maintainer di solito rispondono entro 1 giorno
-
area: editor P3 type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
halisonworks/mod-codeling#290 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
colinhacks/zod#6776 ·
I maintainer di solito rispondono entro 1 giorno