fix(provider): make Claude SDK opt-in - #2
Conversation
commit: |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 05da57b9b6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
@t3tools/provider-runtimecurrently installs and evaluates the Claude Agent SDK for every embedded consumer. That also lets the SDK install a platform binary of roughly 324 MB, even when the consumer uses Codex only.This change loads the SDK only when Claude starts and keeps it as a development-only dependency of the embedded package. Consumers install it explicitly when they select Claude. Cancellation during the deferred import closes a late runtime without starting a query. An optional peer is deliberately avoided because pnpm auto-installs it.
Before / after
The corresponding source change is also proposed upstream in pingdotgg/t3code#8104. This fork PR adds the package contract needed by the separately published
@t3tools/provider-runtimepackage.Verification
@anthropic-ai/claude-agent-sdkThe provider-runtime typecheck still reports the existing contracts mismatch around
mcp_elicitation_approval; this branch does not change that contract.Created with the Codex harness using gpt-5.6-sol.