feat(coding-agent): added resolver-based auth retries to image and search tools
- Routed image-gen, inspect-image, and web search providers through `withAuth`. - Used `reuseInitialApiKey`/`createAuthStorageResolver` for force-refresh and rotate retries. - Attached HTTP status to thrown errors so the retry classifier detects retryable failures.
This commit is contained in:
@@ -29,6 +29,9 @@ function createRegistry(model: Model<Api>) {
|
||||
return {
|
||||
getAvailable: () => [model],
|
||||
getApiKey: async () => "test-key",
|
||||
getApiKeyForProvider: async () => "test-key",
|
||||
authStorage: { rotateSessionCredential: async () => false },
|
||||
resolver: () => async () => "test-key",
|
||||
} as never;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user