Skip to content

Commit 88cb2aa

Browse files
fix: return updated extended card in JsonRpcTransport.get_card()
The get_card() method was incorrectly returning a stale local variable 'card' instead of the updated 'self.agent_card' after fetching the authenticated extended card from the server. This caused callers to receive outdated basic card information instead of the extended card with additional authentication capabilities. - Line 316: Changed 'return card' to 'return self.agent_card' - Fixes critical logic bug where extended card data was fetched but not returned
1 parent 86c6759 commit 88cb2aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/a2a/client/transports/jsonrpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ async def get_card(
424424

425425
self.agent_card = card
426426
self._needs_extended_card = False
427-
return card
427+
return self.agent_card
428428

429429
async def close(self) -> None:
430430
"""Closes the httpx client."""

0 commit comments

Comments
 (0)