[Bug]: CancelTaskRequest.metadata never reaches AgentExecutor.cancel
メンテナーはふだん 2 日以内に返信
@muscariello がすでに取り組んでいます。
2026年11月2日 から。
評価
この issue はまだ評価されていません。
説明
What happened?
CancelTaskRequest has a metadata field (a2a_pb2.pyi; the REST mapping sends the whole request as the body, post: "/tasks/{id=*}:cancel", body: "*" in a2a.proto), but nothing on the server hands it to AgentExecutor.cancel:
RestDispatcher.on_cancel_task(src/a2a/server/routes/rest_dispatcher.py) buildsCancelTaskRequest(id=task_id)and does not read the body.- On every binding,
on_cancel_taskinDefaultRequestHandlerV2reads onlyparams.id, and theRequestContextgiven tocancelhas no request (request=Noneindefault_request_handler.py, no request inActiveTask.cancel). Socontext.metadatais{}for a cancel, while forSendMessageit returns the request's metadata.
A caller's {"metadata": {...}} therefore never reaches the executor, whichever transport it uses. The Go SDK (gRPC) and the .NET SDK (gRPC and JSON-RPC) do pass it to the executor; only their REST bindings drop it.
Expected: context.metadata of a cancel holds the request's metadata. For REST, decode the body into CancelTaskRequest and keep the id from the path.
Read from the source at 11f1116 (v1.3.0 + 12 commits); I did not run it.
Relevant log output
n/a (found by reading the source)
Code of Conduct
- I agree to follow this project's Code of Conduct
- 主要言語
- Python
- スター
- 2.2k
- フォーク
- 528
- 平均マージ
- 3日 17時間
- マージ済み PR(30日)
- 43
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
a2aproject/a2a-python のほかの issue
-
[Bug]: `A2A-Version` validation ignores minor versions and the query parameter対応中かも @rohityan が 69 日前に担当しました。 オープンcomponent: server status:awaiting response
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
a2aproject/a2a-python#1204 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
[Bug]: REST task/request id sanitization対応中かも @Linux2010 が 128 日前に担当しました。 オープンmaintainers-only
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
a2aproject/a2a-python#805 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[Feat]: Add a task-state-invariants agent skill for sibling-surface propagation対応中かも @Linux2010 が今日担当しました。 オープンcomponent: tooling status:awaiting response
a2aproject/a2a-python#1413 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
[Bug]: taskId-only continuation still fails required contextId inference in SDK 1.3.0 (follow-up to #1206)対応中かも @rohityan が 1 日前に担当しました。 オープンcomponent: server status:awaiting response
a2aproject/a2a-python#1411 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
[Feat]: Add a PermissionDenied server error with HTTP 403 and gRPC PERMISSION_DENIED mappings対応中かも @Iwaniukooo11 が今日担当しました。 オープンcomponent: core status: needs review
a2aproject/a2a-python#1410 · コメント 2 件 · 担当者 2 名 ·
メンテナーはふだん 2 日以内に返信
a2aproject/a2a-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/markitdown#2820 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
yt-project/yt#5624 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NousResearch/hermes-agent#148376 ·
メンテナーはふだん 1 日以内に返信