mirror of
https://github.com/router-for-me/CLIProxyAPIPlus.git
synced 2026-04-18 12:23:44 +00:00
Extract the cch hash from Claude Code's billing header in the system prompt (x-anthropic-billing-header: ...cch=XXXXX;) and use it to derive a deterministic conversation_id instead of generating a random UUID. Same Claude Code session → same cch → same conversation_id → Cursor server can reuse conversation state across multiple turns, preserving tool call results and other context without re-encoding history. Also cleans up temporary debug logging from previous iterations. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>