chore(core): drop unreachable AI SDK provider packages - #40504
Merged
Conversation
github-actions Bot
pushed a commit
to ReStranger/opencode
that referenced
this pull request
Aug 5, 2026
* upstream/v2: (28 commits) refactor(app): gate unsupported v2 capabilities (anomalyco#40381) fix(app): show active search details (anomalyco#40597) refactor(app): migrate supported v2 APIs (anomalyco#40378) fix(app): reconcile v2 session projections (anomalyco#40376) refactor(app): own rendering contracts (anomalyco#40375) fix(core): make xAI OAuth device-only (anomalyco#40538) test(app): migrate e2e fixtures to v2 (anomalyco#40374) fix(core): report missing shell workdir (anomalyco#40542) fix(ai): restore Responses tool input semantics (anomalyco#40553) fix(ai): classify malformed Responses tool calls (anomalyco#40549) feat(tui): streamline tab navigation shortcuts (anomalyco#40551) fix(ai): preserve Gemini tool finish semantics (anomalyco#40546) fix: retry empty incomplete streams (anomalyco#40535) fix(app): finish tool call ID rename (anomalyco#40539) refactor: rename tool call ID fields fix(client): wait for live service contenders (anomalyco#40515) chore(core): drop unreachable AI SDK provider packages (anomalyco#40504) fix(tui): update tab titles immediately (anomalyco#40318) fix(tui): show branch beside directory (anomalyco#40500) feat(vcs): publish branch updates (anomalyco#40371) ...
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
Removes AI SDK packages that can never execute on the v2 model resolution path, plus dead deps in unrelated packages.
Model resolution (
model-resolver.tsfromCatalogModel) intercepts these packages beforeloadAISDKcan ever fire their plugin sdk hooks:@ai-sdk/openai→ nativeOpenAIResponsesroute; had zero import sites in core@ai-sdk/anthropic/@ai-sdk/openai-compatible→ kept (still reachable via Copilot Claude models and providers without abaseURL)@ai-sdk/google→AISDKNative.mapalways maps to@opencode-ai/ai/providers/google; sdk hook was the whole plugin, soGooglePluginis deleted@ai-sdk/xai→ always mapped to@opencode-ai/ai/providers/xai; sdk/language hooks removed, OAuth integration kept. ThepromptCacheKeypatch (patches/@ai-sdk%2Fxai@3.0.102.patch) is superseded by the native mapping, so the patch entry and file are removed@openrouter/ai-sdk-provider→ always mapped viamapOpenRouter; sdk hook removed, catalog transform (referer headers, gpt-5-chat alias filtering) keptAlso removes declared-but-never-imported AI deps:
packages/console/function:openai,@ai-sdk/anthropic,@ai-sdk/openai,@ai-sdk/openai-compatible,aipackages/web:aiNotes:
@ai-sdk/googleremains in the tree transitively via@ai-sdk/google-vertex, so its root patch entry stays.@ai-sdk/amazon-bedrockis intentionally not touched: its dead sdk hook contains Bedrock-domain behavior not yet ported natively (cross-region inference-profile model-ID prefixing viaresolveModelID, and AWS default credential chain viafromNodeProviderChainfor profile/SSO/instance-role auth). Follow-up will port those before removal.Checks
bun typecheck(packages/core)bun test test/plugin/(packages/core) — 208 passbun installlockfile updatedRequested by: Aiden Cline (rekram1-node)