Users asked for the AI SDK to send an x-opencode-session header on every request, which the OpenCode Go API said it would require. The maintainers declined to add built-in support because it is a provider-specific header.
Workaround: Pass your own stable conversation ID as a custom request header when calling the model; the SDK already allows arbitrary request headers.
Reported on GitHub · 13 👍 · workaround source