Skip to content

fix: update with_a2a_extensions to append instead of overwriting#985

Merged
ishymko merged 3 commits into1.0-devfrom
ishymko/extensions
Apr 17, 2026
Merged

fix: update with_a2a_extensions to append instead of overwriting#985
ishymko merged 3 commits into1.0-devfrom
ishymko/extensions

Conversation

@ishymko
Copy link
Copy Markdown
Member

@ishymko ishymko commented Apr 17, 2026

Existing extensions are kept, enables better modularity of service parameters updates by (for instance) multiple interceptors.

@ishymko ishymko changed the title fix: update with_a2a_extensions to append instead of overwriting fix: update with_a2a_extensions to append instead of overwriting Apr 17, 2026
@ishymko ishymko marked this pull request as ready for review April 17, 2026 15:35
@ishymko ishymko requested a review from a team as a code owner April 17, 2026 15:35
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 17, 2026

🧪 Code Coverage (vs 1.0-dev)

⬇️ Download Full Report

Base PR Delta
src/a2a/client/service_parameters.py 95.24% 100.00% 🟢 +4.76%
src/a2a/server/events/event_queue_v2.py 91.71% 91.19% 🔴 -0.52%
src/a2a/utils/telemetry.py 91.41% 90.63% 🔴 -0.78%
Total 92.62% 92.61% 🔴 -0.01%

Generated by coverage-comment.yml

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the with_a2a_extensions function to merge and deduplicate extension URIs with existing headers, ensuring a stable sorted order. It also introduces a comprehensive test suite for these changes. Feedback was provided to enhance the robustness of the merging logic by consistently applying the get_requested_extensions helper to all inputs and simplifying the implementation.

Comment thread src/a2a/client/service_parameters.py Outdated
@ishymko ishymko enabled auto-merge (squash) April 17, 2026 15:44
@ishymko ishymko merged commit e1d0e7a into 1.0-dev Apr 17, 2026
18 checks passed
@ishymko ishymko deleted the ishymko/extensions branch April 17, 2026 15:45
ishymko pushed a commit that referenced this pull request Apr 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.0.0-alpha.3](v1.0.0-alpha.2...v1.0.0-alpha.3)
(2026-04-17)


### Bug Fixes

* update `with_a2a_extensions` to append instead of overwriting
([#985](#985))
([e1d0e7a](e1d0e7a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

2 participants