[BUG] CancelTask fails after an ask-user answer resumed the task ("deferred continuation cannot be resumed")
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- ai-infra-agents, backend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- Go
- Estrellas
- 4.2k
- Forks
- 890
- Merge medio
- 1 d 6 h
- PR fusionados (30 d)
- 189
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de kagent-dev/kagent
-
skills-init: commit-SHA skill refs never start (git checkout -- <sha> reads the SHA as a pathspec)Posiblemente ocupada @talcoh2x la tomó hace 1 día. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
kagent-dev/kagent#3571 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Gemini catalogs omit gemini-4-argon and gemini-3.8-flashPosiblemente ocupada @jayunit100 la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
kagent-dev/kagent#3524 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Don't add the provider's public host to egress when a ModelConfig sets baseUrlPosiblemente ocupada @lakshyab20 la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 81/100
kagent-dev/kagent#3507 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[BUG] OpenAI and Ollama adapters send an empty tool message when a tool returns a dictPosiblemente ocupada @helloxjade la tomó hace 9 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
kagent-dev/kagent#3462 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
kagent-dev/kagent#3428 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de kagent-dev/kagent
Issues similares
-
bug raised-by:desk
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
medici-finance/assay#6102 ·
Los mantenedores suelen responder en 1 día
-
hive size:simple
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
akleizor/ccmorph#456 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
radius-project/radius#13744 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
mvanhorn/printing-press-library#2460 ·
Los mantenedores suelen responder en 1 día