Skip to content

OpenCode Go requests are missing x-opencode-session #3344

Description

@colthreepv

Client or integration

Codex App

Provider or upstream service

OpenCode Go (opencode-go)

OpenCodex version

2.40.0

Endpoint or capability

OpenCode Go inference requests (/v1/chat/completions)

Current behaviour

On 3 September 2026, I received an email from updates@opencode.ai, subject “Missing OpenCode Go Header.” It says some requests are missing x-opencode-session, identifies their user agent as Bun fetch, and warns that requests without the header may error starting 09/06.

OpenCodex uses Bun for upstream requests and does not appear to send this header.

Expected behaviour

OpenCodex should send x-opencode-session: <stable-id-per-conversation> with OpenCode Go requests.

Minimal redacted request or reproduction

1. Configure OpenCode Go in OpenCodex.
2. Use an opencode-go model from Codex App.
3. Send multiple turns in one task.
4. The provider reports that requests from "Bun fetch" lack x-opencode-session.

Actual response or error

Provider email: requests without x-opencode-session may error starting 09/06.
User agent: Bun fetch

Upstream documentation

No public specification found. This requirement was communicated directly by updates@opencode.ai on 3 September 2026.

Suggested mapping or implementation notes

Send a stable opaque value per conversation, as requested by the provider.

Additional context and attachments

Related: #2160

Checks

  • I searched existing provider and compatibility issues.
  • The request and response were redacted.
  • The expected behaviour is based on an upstream specification or a concrete client requirement.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    providerProvider adapters, OpenAI-compat presets, upstream API quirksprovider-compatibilityProvider compatibility reports

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions