Skip to content

fix: use native OpenCode V2 provider runtimes - #153

Merged
BrainerVirus merged 1 commit into
mainfrom
fix/native-v2-provider-runtime
Sep 29, 2026
Merged

BrainerVirus merged 1 commit into
mainfrom
fix/native-v2-provider-runtime

Conversation

@BrainerVirus

Copy link
Copy Markdown
Owner

OpenCode V2 was registering Command Code through the legacy aisdk: adapters. In a real image-bearing session, the provider base URL was not carried into requests reliably, so valid Chat Completions payloads returned Invalid input; adding a manual provider block masked the bug.

This switches only V2 to OpenCode's native Chat, Responses, and Anthropic runtimes. V1 keeps its direct AI SDK packages. The original 121-message failing session now resumes from an exported clone with its PNG intact, and a fresh PNG request succeeds without a provider block.

Validation:

  • bun run check — 235 tests, 671 expectations, lint, format, typecheck
  • bun run verify:release-candidate
  • local OpenCode 2.0.19: synthetic PNG and cloned failing session pass
  • official OpenCode 2.0.18 Docker: DeepSeek smoke passes
  • official OpenCode 1.18.30 Docker: unchanged V1 smoke passes
  • Claude Messages reaches the expected GOAT plan boundary (MODEL_NOT_IN_PLAN)

@BrainerVirus
BrainerVirus merged commit f0763c2 into main Sep 29, 2026
5 checks passed
@BrainerVirus
BrainerVirus deleted the fix/native-v2-provider-runtime branch September 29, 2026 18:19
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.10.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant