fix: pass tool_call_id to parse_tool_agent_output for proper payload resolution

This commit is contained in:
qzl
2026-04-22 18:10:41 +08:00
parent ef931ee73c
commit 91077a933d
2 changed files with 407 additions and 1 deletions
@@ -99,7 +99,10 @@ class PipelineStageEmitter:
tool_call_id = str(block.get("id", "")).strip()
if not tool_call_id or tool_call_id in self._emitted_tool_results:
continue
tool_output = parse_tool_agent_output(block.get("output"))
tool_output = parse_tool_agent_output(
block.get("output"),
tool_call_id=tool_call_id,
)
if tool_output is None:
_logger.warning(
"tool_result_block_skipped",