[Bug]: CancelTaskRequest.metadata never reaches AgentExecutor.cancel
維護者通常 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
- 分支
- 532
- 平均合併
- 3 天 11 小時
- 30 天內合併 PR
- 43
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
a2aproject/a2a-python 的其他 Issue
-
[Bug]: `A2A-Version` validation ignores minor versions and the query parameter可能已有人在做 @rohityan 於 71 天前認領。 未關閉component: server status:awaiting response status:stale
難度 2/5 1-3 小時 新手友好度 75/100
a2aproject/a2a-python#1204 · 4 則留言 · 已指派 1 人 ·
維護者通常 2 天內回覆
-
[Bug]: REST task/request id sanitization可能已有人在做 @Linux2010 於 129 天前認領。 未關閉maintainers-only
難度 2/5 1-3 小時 新手友好度 65/100
a2aproject/a2a-python#805 · 1 則留言 ·
維護者通常 2 天內回覆
-
[Bug]: ActiveTask.start() leaves the event queue dispatchers pending when setup fails可能已有人在做 @rohityan 於 1 天前認領。 未關閉
a2aproject/a2a-python#1421 · 已指派 1 人 ·
維護者通常 2 天內回覆
-
Compat REST client drops security from the v0.3 extended agent card可能已有人在做 @rohityan 於 1 天前認領。 未關閉
a2aproject/a2a-python#1418 · 已指派 1 人 ·
維護者通常 2 天內回覆
-
v0.3 JSON-RPC returns -32600 instead of -32602 for invalid params可能已有人在做 @ConnorMoss02 於 1 天前認領。 未關閉component: server status:awaiting response
a2aproject/a2a-python#1417 · 1 則留言 · 已指派 1 人 ·
維護者通常 2 天內回覆
查看 a2aproject/a2a-python 的全部 Issue
相似的 Issue
-
needs-area-label
難度 2/5 1-3 小時 新手友好度 66/100
維護者通常 2 天內回覆
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 84/100
Official-Space-AI/OpenPhysGraspGen#114 ·
維護者通常 2 天內回覆
-
changelog investigate
難度 2/5 1-3 小時 新手友好度 62/100
ramnes/notion-sdk-py#441 ·
-
qa_bug
難度 2/5 1-3 小時 新手友好度 78/100
NVIDIA-NeMo/Gym#5644 ·
維護者通常 2 天內回覆
-
BUG: catalog database credentials printed to logs at startup可能已有人在做 @cjboyle 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆