You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: A2ACardResolver fallback URL logic is wrong — no fallback when user provides the full card URL, and loses the original URL otherwise #1178
Fallback uses cleanBase instead of the user's original URL
When isSameUrl is false (the normal case), the fallback is cleanBase — a sanitized version of the URL with trailing slashes stripped and well-known suffixes removed. This discards the URL the user actually provided. If the user passed a specific URL expecting it to be tried as a fallback, the resolver silently rewrites it.
When the computed card URL matches what the user provided: fall back to the cleaned base URL (without the well-known path).
When they differ: fall back to exactly what the user provided (originalBase).
Impact:
Users passing the full .well-known/agent-card.json URL as baseUrl get a hard 404 with no retry, even though the base URL might serve the card at a different location.
Users whose baseUrl differs slightly from cleanBase (e.g., trailing slash) have their fallback silently rewritten.
Activity
fix(http-client): always provide a fallback URL in A2ACardResolver (#…