feat(opencode): send x-opencode-session header for all providers#15520
feat(opencode): send x-opencode-session header for all providers#15520SeanThomasWilliams wants to merge 1 commit intoanomalyco:devfrom
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found related PRs that address session handling and headers, though not exact duplicates of PR #15520: Potentially Related PRs:
The current PR #15520 appears to be addressing a more comprehensive solution (sending the header unconditionally for all providers), whereas the related PRs are either provider-specific or handle different session header approaches. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
Why
LiteLLM and other proxy or relay setups use the x-opencode-session header for session affinity routing. Today this header is only sent for opencode providers, so non-opencode providers behind a proxy cannot route consistently.
What changed
Impact
This enables stable session affinity across proxy setups, including LiteLLM, Ollama relay, and similar gateways, without changing existing provider-specific header behavior.