Skip to content

release: v0.2.7 - #95

Merged
an1ndra merged 1 commit into
mainfrom
Develop
Nov 22, 2026
Merged

an1ndra merged 1 commit into
mainfrom
Develop

Conversation

@an1ndra

@an1ndra an1ndra commented Nov 22, 2026

Copy link
Copy Markdown
Owner

OpenCode Go works through the gateway.

Go answers 400 upstream_invalid_request ("Request is missing x-opencode-session and cannot be routed efficiently") to anything without that header, so every model on the provider was uncallable through the gateway.

  • The OpenAI-compatible adapter now sends x-opencode-session for slugs starting with opencode, derived from the upstream model and the first user message: stable within a conversation across retries and fallbacks, different between conversations.
  • User-Agent is now path-gateway instead of Java's default, which Go's terms ask for.
  • OpenCodeSessionHeaderTest covers presence, stability, separation and that other providers are untouched.

./mvnw verify passes. Tagging v0.2.7 deploys on the tag.

OpenCode Go refuses a request without x-opencode-session, so every model
on that provider was uncallable through the gateway. Send one derived from
the model and the first user message, and identify the gateway in
User-Agent instead of Java's default.
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@an1ndra
an1ndra merged commit 0c8ca5f into main Nov 22, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant