[BUG] CancelTask fails after an ask-user answer resumed the task ("deferred continuation cannot be resumed")
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- ai-infra-agents, backend
Direzione di ricerca
Start with go/harness/runtime/runtime.go, which defines runtime.ErrSessionAbandoned, and trace how CancelTask handles a turn resumed after an ask_user_response. Reproduce the listed sequence with the Claude harness, then follow the cancellation and deferred continuation code paths. Done means cancellation stops the live turn, marks the task TASK_STATE_CANCELED, and does not require deleting the session.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug description
CancelTask fails on a task that was resumed by answering an ask-user question and is now working again:
-32603 failed to cancel: cancelation failed: restore runtime pending turn: deferred continuation cannot be resumed; start a new session
The task keeps running and there is no way to stop it short of deleting the whole session. That matters when the resumed work has side effects (here the agent went on to clone a repository and was heading towards git push).
deferred continuation cannot be resumed; start a new session is runtime.ErrSessionAbandoned (go/harness/runtime/runtime.go). It looks like cancellation tries to restore the deferred continuation, which has already been consumed by the answer, instead of cancelling the live turn the answer started.
Steps to reproduce
- A Claude harness agent calls
AskUserQuestionand the task goesinput-required. - Answer it with a valid
ask_user_response. The agent resumes and the task isTASK_STATE_WORKING. - While it works,
CancelTaskthe task.
Expected
The running turn is stopped and the task becomes TASK_STATE_CANCELED, as it does for a task that never paused.
Actual
The error above. The task stays TASK_STATE_WORKING and the agent keeps going. Deleting the session from the UI did stop it.
Environment
kagent v1.0.0-alpha17, Substrate v0.6.0-alpha3, Claude harness (Claude Code 2.1.285).
- Lingua principale
- Go
- Stelle
- 4.2k
- Fork
- 890
- Merge medio
- 1g 6h
- PR unite (30g)
- 189
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
- Leggi la 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 kagent-dev/kagent
-
skills-init: commit-SHA skill refs never start (git checkout -- <sha> reads the SHA as a pathspec)Forse già presa @talcoh2x l’ha presa 1 giorno fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
kagent-dev/kagent#3571 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Gemini catalogs omit gemini-4-argon and gemini-3.8-flashForse già presa @jayunit100 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
kagent-dev/kagent#3524 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Don't add the provider's public host to egress when a ModelConfig sets baseUrlForse già presa @lakshyab20 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
kagent-dev/kagent#3507 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] OpenAI and Ollama adapters send an empty tool message when a tool returns a dictForse già presa @helloxjade l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
kagent-dev/kagent#3462 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
kagent-dev/kagent#3428 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di kagent-dev/kagent
Issue simili
-
bug raised-by:desk
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
medici-finance/assay#6102 ·
I maintainer di solito rispondono entro 1 giorno
-
hive size:simple
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
akleizor/ccmorph#456 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
radius-project/radius#13744 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
mvanhorn/printing-press-library#2460 ·
I maintainer di solito rispondono entro 1 giorno