[BUG] CancelTask fails after an ask-user answer resumed the task ("deferred continuation cannot be resumed")
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- go
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- Go
- スター
- 4.2k
- フォーク
- 890
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 189
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
kagent-dev/kagent のほかの issue
-
skills-init: commit-SHA skill refs never start (git checkout -- <sha> reads the SHA as a pathspec)対応中かも @talcoh2x が 1 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
kagent-dev/kagent#3571 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Gemini catalogs omit gemini-4-argon and gemini-3.8-flash対応中かも @jayunit100 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
kagent-dev/kagent#3524 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Don't add the provider's public host to egress when a ModelConfig sets baseUrl対応中かも @lakshyab20 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 81/100
kagent-dev/kagent#3507 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] OpenAI and Ollama adapters send an empty tool message when a tool returns a dict対応中かも @helloxjade が 9 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
kagent-dev/kagent#3462 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
kagent-dev/kagent#3428 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
kagent-dev/kagent の issue をすべて見る
似ている issue
-
bug raised-by:desk
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
medici-finance/assay#6102 ·
メンテナーはふだん 1 日以内に返信
-
hive size:simple
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
akleizor/ccmorph#456 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
radius-project/radius#13744 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
mvanhorn/printing-press-library#2460 ·
メンテナーはふだん 1 日以内に返信