mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-06 00:05:30 +00:00
proxyOpenAIWSHTTPBridgeTurn built its upstream request without staging the converged Codex fingerprint IDs, unlike Forward and forwardOpenAIPassthrough. The bridge therefore sent different device-fingerprint headers than the HTTP paths for the same account, and when the client sent no prompt_cache_key the request carried no session_id at all, so upstream prompt-cache routing was effectively random and multi-turn requests rarely hit the cache. Stage the IDs (and rewrite client_metadata) the same way forwardOpenAIPassthrough does, clearing any stale IDs first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>