You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Mistral Provider: Support x-affinity header for session continuation #11466
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
The official mistral-vibe CLI uses the x-affinity header to track and continue sessions. This seems to be similar to promptCaching in the OpenAI provider for example.
The session_id passed to x-affinity is a UUID4, the session id used or promptCaching in OpenCode is a based on a timestamp, so maybe it's not compatible out of the box, but worth a try.
The x-affinity header for Mistral is a specific implementation of session continuation that differs from Anthropic's prompt caching approach. This seems like a new feature request that addresses Mistral's specific session continuation mechanism.
I would also be interested in getting this fixed - my manual workaround is to set it in opencode.json to a hardcoded GUID to get some meaningful caching hits at all when using mistral, but that has probably other drawbacks
Activity
github-actions commentedon Jan 31, 2026
Based on a review of existing issues, I don't see a direct duplicate of this feature request.
However, there are some related issues worth checking:
The x-affinity header for Mistral is a specific implementation of session continuation that differs from Anthropic's prompt caching approach. This seems like a new feature request that addresses Mistral's specific session continuation mechanism.
github-actions commentedon Apr 2, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
sdroege commentedon Apr 2, 2026
This is still relevant
fmflurry commentedon Jun 3, 2026
Where are we with this feature ?
kostadin-damyanov-prime commentedon Jul 4, 2026
@thdxr Can we reopen this issue? I believe that it is still relevant.
fmflurry commentedon Jul 4, 2026
If you want to use it already, copy paste this plugin I made: fmflurry/harness-manifesto@6deeab7
kostadin-damyanov-prime commentedon Jul 5, 2026
Thank you @fmflurry I will try it!
nanosek commentedon Jul 13, 2026
I would also be interested in getting this fixed - my manual workaround is to set it in opencode.json to a hardcoded GUID to get some meaningful caching hits at all when using mistral, but that has probably other drawbacks