mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
An ephemeral Codex fork, such as app-server thread/sample, keeps its parent's session-id header and prompt_cache_key but names itself in client_metadata.session_id. Account identity scoping compared the key only with client_metadata.session_id, so a fork's key fell into the prompt-cache namespace and reached upstream as a different value from its parent's, and the fork lost the parent's prompt cache. Treat a key that equals either client_metadata.session_id or the client's session-id header as a session key.