fix responses websocket tool output context

This commit is contained in:
Codex
2026-05-08 05:12:30 +00:00
parent 785b00c312
commit c883114a4d
2 changed files with 33 additions and 5 deletions
@@ -300,11 +300,6 @@ func repairResponsesToolCallsArray(outputCache, callCache *websocketToolOutputCa
continue
}
if allowOrphanOutputs {
filtered = append(filtered, item)
continue
}
if _, ok := callPresent[callID]; ok {
filtered = append(filtered, item)
continue
@@ -322,6 +317,11 @@ func repairResponsesToolCallsArray(outputCache, callCache *websocketToolOutputCa
}
}
if allowOrphanOutputs {
filtered = append(filtered, item)
continue
}
// Drop orphaned function_call_output items; upstream rejects transcripts with missing calls.
continue
}