Skip to content

fix(a2a): return not found for expired and missing sessions - #3231

Merged
EItanya merged 2 commits into
mainfrom
fix/session-cleanup
Oct 16, 2026
Merged

EItanya merged 2 commits into
mainfrom
fix/session-cleanup

Conversation

@supreme-gg-gg

Copy link
Copy Markdown
Contributor

Continuing an expired or missing session by contextId previously returned permission denied, while using taskId returned task not found.

Map A2A service-level not-found errors consistently to TaskNotFound (-32001, gRPC NOT_FOUND), including missing Agents. Agent-card HTTP discovery now returns 404. Authorization failures retain permission-denied responses, and ownership filtering remains intact.

Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
@supreme-gg-gg
supreme-gg-gg requested a review from a team as a code owner October 15, 2026 22:01
@github-actions github-actions Bot added the bug Something isn't working label Oct 15, 2026
Agent: &apiv1.ResourceReference{Namespace: agent.Namespace, Name: agent.Name}}
sessionStore := &serviceTestStore{getResult: stored}
authorizer := &recordingAuthorizer{denied: map[string]bool{id: true}}
if test.name == "missing session" {

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.

I can't believe I'm reviewing test code again lol, but this feels like a smell

@supreme-gg-gg supreme-gg-gg Oct 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed it, I'll need to start looking at Codex's test changes 😂 ...

Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
@EItanya
EItanya added this pull request to the merge queue Oct 16, 2026
Merged via the queue into main with commit 90b817e Oct 16, 2026
29 checks passed
@EItanya
EItanya deleted the fix/session-cleanup branch October 16, 2026 11:31
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.

2 participants