From 89a7e78376d583f4899ede2b9b6d2e046b21ad9f Mon Sep 17 00:00:00 2001 From: Adam Weidman Date: Thu, 12 Mar 2026 00:05:37 -0400 Subject: [PATCH] fix: consistent token caching and test updates for google-credentials provider - Cache access tokens alongside ID tokens for consistent retry behavior - Add targetUrl to registry test assertion after merge - Add tests for cache hits, 403 retry, and retry exhaustion --- packages/core/src/agents/registry.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/agents/registry.test.ts b/packages/core/src/agents/registry.test.ts index 9ac2ec0cf9..49786de4b0 100644 --- a/packages/core/src/agents/registry.test.ts +++ b/packages/core/src/agents/registry.test.ts @@ -593,6 +593,7 @@ describe('AgentRegistry', () => { expect(A2AAuthProviderFactory.create).toHaveBeenCalledWith({ authConfig: mockAuth, agentName: 'RemoteAgentWithAuth', + targetUrl: 'https://example.com/card', agentCardUrl: 'https://example.com/card', }); expect(loadAgentSpy).toHaveBeenCalledWith(