Skip to content

feat(providers): adopt shared authentication and resilience - #55

Merged
danielkov merged 5 commits into
mainfrom
feat/provider-resiliency
Aug 30, 2026
Merged

feat(providers): adopt shared authentication and resilience#55
danielkov merged 5 commits into
mainfrom
feat/provider-resiliency

Conversation

@danielkov

@danielkov danielkov commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces Kit鈥檚 local OpenAI Responses transport and codec with AgentKit鈥檚 reusable OpenAIResponsesAdapter. Provider resilience is enabled by default without adding user-facing configuration, while Kit retains its ChatGPT authentication and private endpoint behavior.

Uses the released AgentKit packages for shared provider resilience and keeps only agentkit-acp pinned to the rebased ACP v2 PR.

Motivation

Kit鈥檚 subscription provider duplicated request encoding, SSE decoding, retries, continuation handling, and response-attempt recovery now provided generically by AgentKit.

Impact

OpenAI subscription sessions retain their long-running retry and timeout policy. OpenRouter and Speakeasy now use AgentKit鈥檚 default resilience policy automatically. The release version advances to 0.1.111.

Technical details

Subscription authentication and migration

Kit retains OAuth login, credential persistence, proactive refresh, rejected-token-aware 401 refresh, and account/login-generation binding. Kit migrates its legacy openai.subscription.v1 continuation metadata before requests enter AgentKit, keeping the compatibility policy consumer-owned.

Response-attempt supersession

Kit opts supporting sessions into AgentKit鈥檚 typed response-attempt supersession capability and maps typed supersession events into ACP response replacement behavior.

Dependency boundary

Released AgentKit crates provide the generic resilience and Responses implementations. The ACP crate remains pinned to danielkov/agentkit#13 for the unreleased session-injection API, with its supporting AgentKit crates resolved from their released packages.

@danielkov
danielkov force-pushed the feat/provider-resiliency branch from 044c198 to d81e48f Compare August 30, 2026 12:09
@danielkov
danielkov merged commit 36a0d0d into main Aug 30, 2026
2 checks passed
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.

1 participant