Skip to content

Backport fix(golang-adk): resolve user identity from A2A call context to 0.10.x - #2507

Open
buravc wants to merge 4 commits into
kagent-dev:release/v0.10.xfrom
buravc:fix/golang-adk-userid-propagation-v0.10.x
Open

Backport fix(golang-adk): resolve user identity from A2A call context to 0.10.x#2507
buravc wants to merge 4 commits into
kagent-dev:release/v0.10.xfrom
buravc:fix/golang-adk-userid-propagation-v0.10.x

Conversation

@buravc

@buravc buravc commented Aug 20, 2026

Copy link
Copy Markdown

AI Disclosure: This PR was created with an AI agent under my supervision.

Fixes #2443

This PR fixes task/chat history disappearing after 0.10 upgrade.

Backport of #2449

buravc added 2 commits August 20, 2026 11:07
userIDInterceptor.Before runs before a2a-go v0.3.15 forks execution
and persistence into separate goroutines. Putting the user id on ctx
there, instead of only on the CallContext, means both goroutines see
it. Execute now reads it via auth.UserIDFromContext instead of the
CallContext, which the persistence goroutine never had access to.

Signed-off-by: buravc <avcii.brk@gmail.com>
Verified this test fails without the fix (returned ctx has no user id).

Signed-off-by: buravc <avcii.brk@gmail.com>

@supreme-gg-gg supreme-gg-gg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks for the backport! (I edited the title a bit to make it more easier to distinguish between this PR and the one to main)

@supreme-gg-gg supreme-gg-gg changed the title fix(golang-adk): resolve user identity from A2A call context Backport fix(golang-adk): resolve user identity from A2A call context to 0.10.x Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants