fix(interactions): bridge apply_patch tool calls in responses translation

- Handle apply_patch custom tool call streaming deltas and snapshots for Responses API translation
- Track and resolve step indexes, function call identities, and error states across stream events
- Propagate apply_patch tool input errors and upstream failure states in stream and non-stream responses
This commit is contained in:
Luis Pater
2026-10-02 03:48:53 +08:00
parent fd48ea6840
commit 3ebee06516
96 changed files with 14576 additions and 554 deletions

View File

@@ -15,3 +15,6 @@ func (e *CodexExecutor) Identifier() string { return "codex" }
func (e *CodexExecutor) modelLevelCooling() bool {
return e != nil && e.cfg != nil && e.cfg.Codex.ModelLevelCooling
}
// SupportsApplyPatch reports the actual executor contract, independent of its provider name.
func (e *CodexExecutor) SupportsApplyPatch() bool { return e != nil }