Skip to content

fix(compat): send no v0.3 configuration when the request has none - #1429

Merged
Iwaniukooo11 merged 3 commits into
a2aproject:mainfrom
ConnorMoss02:fix/v03-blocking-default
Nov 12, 2026
Merged

Iwaniukooo11 merged 3 commits into
a2aproject:mainfrom
ConnorMoss02:fix/v03-blocking-default

Conversation

@ConnorMoss02

Copy link
Copy Markdown
Contributor

Problem

The v0.3 REST and gRPC client transports sent an empty SendMessageConfiguration for a request without one, which the server reads as blocking=false.

Fix

ToProto.message_send_configuration returns None when there is no configuration, so the client sends none and the server keeps its blocking default, like the JSON-RPC transport.

Tests

test_compat_rest_transport_send_message_without_configuration and test_compat_grpc_transport_send_message_without_configuration fail on main. test_compat_rest_transport_send_message_with_configuration checks that an explicit configuration still sends blocking: true. 2555 passed.

Fixes #1428

The v0.3 REST and gRPC client transports sent an empty
SendMessageConfiguration for a request without one. v0.3 `blocking` has
no presence, so the server read it as blocking=false and returned the
task as soon as it was submitted. The v0.3 JSON-RPC transport omits the
configuration and gets the blocking default; do the same.
@ConnorMoss02
ConnorMoss02 requested a review from a team as a code owner November 5, 2026 17:35
@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

🧪 Code Coverage (vs main)

⬇️ Download Full Report

Base PR Delta
src/a2a/compat/v0_3/proto_utils.py 90.76% 91.13% 🟢 +0.37%
src/a2a/server/cluster/database_event_stream.py 92.73% 97.27% 🟢 +4.55%
Total 93.49% 93.55% 🟢 +0.07%

Generated by coverage-comment.yml

Comment thread src/a2a/compat/v0_3/proto_utils.py Resolved
@ConnorMoss02

Copy link
Copy Markdown
Contributor Author

Thank you this was helpful. Updated the code to include the gRPC check, added the assertion to test_none_handling and cut the docstring to one line. Thanks!

@Iwaniukooo11 Iwaniukooo11 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Iwaniukooo11
Iwaniukooo11 merged commit 01483cb into a2aproject:main Nov 12, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.3 REST and gRPC clients send blocking requests as non-blocking

2 participants