Skip to content

[FEATURE]: Mistral Provider: Support x-affinity header for session continuation #11466

@machinekoder

Description

@machinekoder

Feature hasn't been suggested before.

  • 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.

Here is some evidence:
https://github.com/mistralai/mistral-vibe/blob/9809cfc8315049b6f02b1865306903d92428919f/vibe/core/agent_loop.py#L587
https://github.com/mistralai/mistral-vibe/blob/9809cfc8315049b6f02b1865306903d92428919f/vibe/core/agent_loop.py#L156
https://github.com/mistralai/mistral-vibe/blob/9809cfc8315049b6f02b1865306903d92428919f/vibe/cli/textual_ui/app.py#L1242

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions