Skip to content

mistral: Add x-affinity header#48584

Merged
benbrandt merged 1 commit intozed-industries:mainfrom
vianney:mistral-affinity
Feb 13, 2026
Merged

mistral: Add x-affinity header#48584
benbrandt merged 1 commit intozed-industries:mainfrom
vianney:mistral-affinity

Conversation

@vianney
Copy link
Contributor

@vianney vianney commented Feb 6, 2026

Mistral Vibe, the official coding agent from Mistral, sets the x-affinity header to the session ID to enable prompt caching. This patch implements the same mechanism, resulting in a faster agent loop.

Release Notes:

  • Added prompt caching for Mistral AI.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 6, 2026
@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Feb 6, 2026
@SomeoneToIgnore SomeoneToIgnore added the area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features label Feb 6, 2026
@benbrandt benbrandt self-assigned this Feb 12, 2026
Copy link
Member

@benbrandt benbrandt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@vianney
Copy link
Contributor Author

vianney commented Feb 13, 2026

@benbrandt CI complains about formatting issues. What is Zed's workflow for this? Do you want me to reformat my changes and update the PR, or do you take care of it?

@benbrandt
Copy link
Member

@vianney you should be able to run cargo fmt and be good to go

Mistral Vibe, the official coding agent from Mistral, sets the
x-affinity header to the session ID to enable prompt caching.
This patch implements the same mechanism, resulting in a faster agent
loop.

Release Notes:

- Added prompt caching for Mistral AI.
@benbrandt benbrandt enabled auto-merge (squash) February 13, 2026 11:55
@benbrandt benbrandt merged commit 7b569de into zed-industries:main Feb 13, 2026
27 checks passed
@vianney vianney deleted the mistral-affinity branch February 13, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants