[PR #13485] fix(copilot): enable gpt-5.3-codex and other models requiring /responses endpoint #14685

Open
opened 2026-02-16 18:19:27 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13485

State: open
Merged: No


Summary

  • Force all github-copilot models to use @ai-sdk/github-copilot SDK after config processing
  • Allow external copilot auth plugins to load from config
  • Skip x-initiator override when using bundled SDK to prevent validation errors

Fixes #13487

Changes

provider.ts

Added npm override loop after config processing to ensure config-defined github-copilot models use the bundled SDK with responses() support instead of falling back to @ai-sdk/openai-compatible.

plugin/index.ts

Removed explicit skip for opencode-copilot-auth plugin, allowing external auth plugins to load when specified in user config.

copilot.ts

Skip x-initiator header override when model uses @ai-sdk/github-copilot SDK. The bundled SDK has its own fetch wrapper that sets x-initiator based on message content - overriding it caused "invalid initiator" validation errors from Copilot API.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13485 **State:** open **Merged:** No --- ## Summary - Force all `github-copilot` models to use `@ai-sdk/github-copilot` SDK after config processing - Allow external copilot auth plugins to load from config - Skip x-initiator override when using bundled SDK to prevent validation errors Fixes #13487 ## Changes ### `provider.ts` Added npm override loop **after** config processing to ensure config-defined github-copilot models use the bundled SDK with `responses()` support instead of falling back to `@ai-sdk/openai-compatible`. ### `plugin/index.ts` Removed explicit skip for `opencode-copilot-auth` plugin, allowing external auth plugins to load when specified in user config. ### `copilot.ts` Skip `x-initiator` header override when model uses `@ai-sdk/github-copilot` SDK. The bundled SDK has its own fetch wrapper that sets `x-initiator` based on message content - overriding it caused "invalid initiator" validation errors from Copilot API.
yindo added the pull-request label 2026-02-16 18:19:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14685