[PR #11474] feat: add mistral session affinity header #13804

Open
opened 2026-02-16 18:18:38 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11474

State: open
Merged: No


Summary

  • add deterministic Mistral x-affinity header based on session ID
  • bump affinity after compaction to reset session affinity
  • add tests for affinity generation and Mistral detection

Testing

  • I tested the development build server with the Mistral provider and it works as expected.
  • Unit tests have been added for the x-affinity header and cleanup of Mistral affinity id.

Fixes #11466

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11474 **State:** open **Merged:** No --- ## Summary - add deterministic Mistral `x-affinity` header based on session ID - bump affinity after compaction to reset session affinity - add tests for affinity generation and Mistral detection ## Testing - I tested the development build server with the Mistral provider and it works as expected. - Unit tests have been added for the x-affinity header and cleanup of Mistral affinity id. Fixes #11466
yindo added the pull-request label 2026-02-16 18:18:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13804