Skip to content

fix(multitenancy): resolve agent card via router when no default bean… - #1184

Open
ehsavoie wants to merge 1 commit into
a2aproject:mainfrom
ehsavoie:issue_1182
Open

ehsavoie wants to merge 1 commit into
a2aproject:mainfrom
ehsavoie:issue_1182

Conversation

@ehsavoie

Copy link
Copy Markdown
Collaborator

… exists

When all @PublicAgentCard beans carry a @tenant qualifier, resolveAgentCard() threw IllegalStateException because CdiUtils.resolveDefault() skips tenant-qualified beans. Thread the tenant and AgentCardRouter through the resolution chain so the router is consulted before throwing.

Fixes #1182 🦕

@ehsavoie
ehsavoie force-pushed the issue_1182 branch 2 times, most recently from ce51067 to daf85cb Compare September 25, 2026 15:31
@ehsavoie
ehsavoie force-pushed the issue_1182 branch 2 times, most recently from dba0952 to 80fc9f2 Compare September 25, 2026 16:43
… exists

When all @PublicAgentCard beans carry a @tenant qualifier,
AgentCardValidator.resolveWithFallback() threw IllegalStateException
because CdiUtils.resolveDefault() skips tenant-qualified beans. Thread
tenant and AgentCardRouter through transport handlers so the router is
consulted before throwing.

Fixes a2aproject#1182

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>

This branch has not been deployed

No deployments
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.

[Bug]: resolveAgentCard() fails in pure multi-tenant setup with no default @PublicAgentCard

2 participants