feat(providers): adopt shared authentication and resilience - #55
Merged
Conversation
danielkov
force-pushed
the
feat/provider-resiliency
branch
from
August 29, 2026 21:25
b370d66 to
28e4dec
Compare
danielkov
force-pushed
the
feat/provider-resiliency
branch
from
August 29, 2026 21:44
28e4dec to
044c198
Compare
danielkov
force-pushed
the
feat/provider-resiliency
branch
from
August 30, 2026 12:09
044c198 to
d81e48f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-acppinned 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.v1continuation 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.