bug: opencode go as custom provider is not working, require session id to be passed as header
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 134
- Avg merge
- 14h 57m
- Merged PRs (30d)
- 307
Description
## Issue
When using OpenCode go as custom provider, it return this error:
```
Error from provider (Console Go): Request is missing x-opencode-session and cannot be routed efficiently. Please see https://opencode.ai/docs/go/#where-can-i-use-it
```
The docs says:
> Your client should:
> Send typical coding agent traffic
> Identify itself with its own user agent, such as my-coding-agent/1.0, rather than a generic SDK or HTTP-library name.
> Send a stable session ID in x-opencode-session for each conversation so we can optimize routing and prompt caching.
reference: https://opencode.ai/docs/go/#where-can-i-use-it
## Suggestion
Add ability to set custom header in custom provider and set it as literal value or get it from predefined variable (such as session id for this case)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.