Skip to content

The agent that grows with you

Merge lane/106742-acp: review findings

teknium12d264224a69f
diff --cc gateway/run_turn_progress.py
index cc959007c51,259cc7116fd..6704f322bcf
--- a/gateway/run_turn_progress.py
+++ b/gateway/run_turn_progress.py
@@@ -724,8 -724,8 +724,9 @@@ class GatewayTurnProgressMixin
def combined_tool_start_callback(self, call_id, tool_name, args):
"""Compose the voice ack + native task-card start consumers."""
self._publish_execution("tool.start", {
- "tool_call_id": str(call_id or ""), "tool_name": str(tool_name or "tool")})
+ "tool_call_id": str(call_id or ""), "tool_name": str(tool_name or "tool"),
+ "args": args if isinstance(args, dict) else {}})
+ self._publish_api_tool("tool.start", call_id, tool_name, args)
if self._ctx._voice_ack_guild[0] is not None:
self.voice_ack_callback(call_id, tool_name, args)
if self._ctx._native_slack_task_cards:
@@@ -736,8 -736,8 +737,9 @@@
is_error, _ = _detect_tool_failure(tool_name, result)
self._publish_execution("tool.complete", {
"tool_call_id": str(call_id or ""), "tool_name": str(tool_name or "tool"),
- "is_error": bool(is_error)})
+ "is_error": bool(is_error), "args": args if isinstance(args, dict) else {},
+ "result": result if isinstance(result, str) else str(result)})
+ self._publish_api_tool("tool.complete", call_id, tool_name, args, result)
if self._ctx._native_slack_task_cards:
self.native_tool_complete_callback(call_id, tool_name, args, result)