fix!: Rename blocking to returnImmediately in SendMessageConfiguration#722
fix!: Rename blocking to returnImmediately in SendMessageConfiguration#722kabir merged 2 commits intoa2aproject:mainfrom
blocking to returnImmediately in SendMessageConfiguration#722Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a breaking change by renaming the Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly renames the blocking field to returnImmediately in SendMessageConfiguration and inverts its semantics as described. The changes have been consistently applied across the proto files, Java data models, builders, and associated tests. The update to the default behavior is also correctly implemented. I've found one minor inconsistency in a test case's JSON payload, which I've left a comment on. Other than that, the changes look good.
Note: Security Review did not run due to the size of the PR.
| " },\n" + | ||
| " \"configuration\": {\n" + | ||
| " \"blocking\": true\n" + | ||
| " \"returnImmediately\": true\n" + |
There was a problem hiding this comment.
The conversion from blocking to returnImmediately seems incorrect here. The original value was "blocking": true, which means the operation should wait. According to the PR description, this should be converted to "returnImmediately": false. The current change to "returnImmediately": true inverts the behavior of this test request from "wait" to "return immediately". While this test might pass as it doesn't assert on this specific value, it's semantically incorrect and could be confusing.
| " \"returnImmediately\": true\n" + | |
| " \"returnImmediately\": false\n" + |
…ation Sync a2a.proto with upstream (dec790a -> 601c408). The `blocking` field in `SendMessageConfiguration` has been renamed to `return_immediately` with inverted semantics: - `blocking=true` (wait) -> `returnImmediately=false` - `blocking=false` (return immediately) -> `returnImmediately=true` The default behavior changed: `false` now means "wait for completion" instead of "return immediately". BREAKING CHANGE: `MessageSendConfiguration.blocking()` renamed to `returnImmediately()`. Builder method `.blocking(boolean)` renamed to `.returnImmediately(boolean)` with inverted value. JSON wire format field changed from `"blocking"` to `"returnImmediately"`. Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request correctly renames the blocking field to returnImmediately in SendMessageConfiguration and consistently applies the inverted logic throughout the codebase. The change, including the modification of the default behavior to blocking, is well-documented in the pull request description. The updates span across domain models, transport layers, generated code from protobuf definitions, and tests, ensuring consistency. I have one suggestion to improve logging clarity in the DefaultRequestHandler.
Note: Security Review did not run due to the size of the PR.
server-common/src/main/java/io/a2a/server/requesthandlers/DefaultRequestHandler.java
Outdated
Show resolved
Hide resolved
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sync a2a.proto with upstream (dec790a -> 601c408).
The
blockingfield inSendMessageConfigurationhas been renamed toreturn_immediatelywith inverted semantics:blocking=true(wait) ->returnImmediately=falseblocking=false(return immediately) ->returnImmediately=trueThe default behavior changed:
falsenow means "wait for completion" instead of "return immediately".BREAKING CHANGE:
MessageSendConfiguration.blocking()renamed toreturnImmediately(). Builder method.blocking(boolean)renamed to.returnImmediately(boolean)with inverted value. JSON wire format field changed from"blocking"to"returnImmediately".