OpenCode PR fixes dropped response.modelId metadata in AI SDK stream events

KarmCraft · ghdev · 2026-09-18

KarmCraft opened PR #49571 against anomalyco/opencode to stop discarding response.modelId when adapting AI SDK stream events. The value now rides on the step-finish part and is exposed as optional modelID in the session schema and generated SDK types, keeping the AI SDK's structured model ID rather than response headers.

Original post →

More from coding & agent

coding & agent channel →