Files
CLIProxyAPI/internal/translator/interactions
Luis Pater 531721bfce fix(codex): restore Codex commentary history via internal thinking signature marker
- Stamp Codex commentary thinking blocks with the CLIProxyAPI-internal marker `cpa:commentary:v1` in streaming and non-streaming Claude responses, keeping real reasoning signatures isolated.
- Restore marked blocks on replay before any provider signature handling: as an assistant `phase: "commentary"` message for Codex targets and as plain assistant text for Claude-compatible, OpenAI, Gemini, Interactions, and Antigravity targets, so the marker never reaches an upstream.
- Add the unconditional marker restore at the Claude upstream sanitize entry so non-Claude model names cannot bypass it, with round-trip and cross-format regression tests.

Closes: #6994
2026-10-26 15:58:41 +08:00
..