fix: clear stale thinking signature when no block is open

This commit is contained in:
Ravi Tharuma
2026-03-25 07:52:32 +01:00
parent 73b22ec29b
commit 66eb12294a

View File

@@ -389,6 +389,7 @@ func ClaudeTokenCount(_ context.Context, count int64) []byte {
func finalizeCodexThinkingBlock(params *ConvertCodexResponseToClaudeParams) []byte {
if !params.ThinkingBlockOpen {
params.ThinkingSignature = ""
return nil
}