Daily Edition Sources +2

Pi Stops Treating Session Affinity as One Header

Pi’s OpenRouter fix shows why “OpenAI-compatible” requests still need provider-specific routing details.

Torn-paper routing diagram showing one session label entering a Pi adapter and splitting to OpenRouter x-session-id or OpenAI-family session and request ID headers, with a continuity caveat stamp.
Diagram Punkprovider-compatible requests carry provider-specific metadata.
repo earendil-works/pi evidence
2 source signals 1 repo commit 298665c
Evidence: commit 298665c / July 15, 2026 / Daily Edition
Open Edition Evidence below

A shared request body is not the whole compatibility contract. In a public Pi issue, a reporter showed that OpenRouter expected a session key as x-session-id or in JSON, while Pi had been sending the OpenAI-style session_id header plus x-client-request-id.

Why it matters

Pi’s fix adds a provider-scoped affinity format across both OpenAI-compatible adapters. For OpenRouter it sends x-session-id; for the OpenAI family it retains the relevant OpenAI-oriented headers. The commit also adds tests that assert which headers are present and absent. For builders, the lesson is practical: an adapter that accepts the same JSON can still need different metadata to route a session as intended.

What to watch

This proves Pi changed its outgoing request shape, not that a provider will retain context, hit a cache, or keep a model conversation continuous. The next signal is provider documentation or a reproducible integration result that connects the header to downstream behavior.

Evidence Trail

Receipts below the story

The article above is the public narrative. This section keeps the source trail and limits on the same page.

Edition
DateJuly 15, 2026
LaneDaily Edition
Confidence68%
Sources2
Reposearendil-works/pi

Primary Evidence

Evidence Limits

  • The sources show Pi's outgoing request formation, not any provider guarantee of session continuity, cache retention, or a model response. Watch for provider documentation or integration reports that describe the downstream effect.
Letters & Corrections

Send a note to the desk

Corrections, missing context, or a follow-up lead.