[Bug]: CancelTaskRequest.metadata never reaches AgentExecutor.cancel
Maintainer antworten meist innerhalb von 2 Tagen
@muscariello arbeitet bereits daran.
Seit 02.11.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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
- Vorherrschende Sprache
- Python
- Sterne
- 2.2k
- Forks
- 528
- Ø Merge
- 3 T. 17 Std.
- Gemergte PRs (30 T.)
- 43
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus a2aproject/a2a-python
-
[Bug]: `A2A-Version` validation ignores minor versions and the query parameterEvtl. vergeben @rohityan hat das vor 69 Tagen übernommen. Offencomponent: server status:awaiting response
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
a2aproject/a2a-python#1204 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
[Bug]: REST task/request id sanitizationEvtl. vergeben @Linux2010 hat das vor 128 Tagen übernommen. Offenmaintainers-only
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
a2aproject/a2a-python#805 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
[Feat]: Add a task-state-invariants agent skill for sibling-surface propagationEvtl. vergeben @Linux2010 hat das heute übernommen. Offencomponent: tooling status:awaiting response
a2aproject/a2a-python#1413 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
[Bug]: taskId-only continuation still fails required contextId inference in SDK 1.3.0 (follow-up to #1206)Evtl. vergeben @rohityan hat das vor 1 Tag übernommen. Offencomponent: server status:awaiting response
a2aproject/a2a-python#1411 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
[Feat]: Add a PermissionDenied server error with HTTP 403 and gRPC PERMISSION_DENIED mappingsEvtl. vergeben @Iwaniukooo11 hat das heute übernommen. Offencomponent: core status: needs review
a2aproject/a2a-python#1410 · 2 Kommentare · 2 zugewiesene Personen ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in a2aproject/a2a-python
Ähnliche Issues
-
ci-rerun: collect.py fails a whole pr-babysit cycle on one transient GitHub 5xx and never retriesOffenfollow-up
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Built-in QUBO fallback applies bitwise xor to floating binary statesEvtl. vergeben @iloveeyjafjalla hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
qboson/kaiwu-pytorch-plugin#1702 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
bug v2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
modelcontextprotocol/python-sdk#3811 ·
Maintainer antworten meist innerhalb von 1 Tag
-
cost:cheap practicality:seen-in-the-wild severity:medium
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
fairagro/m4.2_advanced_middleware_api#620 ·
Maintainer antworten meist innerhalb von 1 Tag