Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion executor/agents/claude_code/response_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ async def _process_result_message(
result_details = {
"type": "result",
"subtype": msg.subtype,
"stop_reason": msg.stop_reason,
"is_error": msg.is_error,
"session_id": msg.session_id,
"num_turns": msg.num_turns,
Expand All @@ -568,7 +569,7 @@ async def _process_result_message(
msg_dict = asdict(msg)
masked_msg_dict = mask_sensitive_data(msg_dict)
logger.info(
f"Result message received: subtype={msg.subtype}, is_error={msg.is_error}, msg = {json.dumps(masked_msg_dict, ensure_ascii=False)}"
f"Result message received: subtype={msg.subtype}, stop_reason={msg.stop_reason}, is_error={msg.is_error}, msg = {json.dumps(masked_msg_dict, ensure_ascii=False)}"
)

# Check for silent exit marker in result
Expand Down
8 changes: 7 additions & 1 deletion executor/callback/callback_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,13 @@ def _do_send_callback(self, data: Dict[str, Any]) -> Dict[str, Any]:
"""
# Mask sensitive data in callback payload for logging
masked_data = mask_sensitive_data(data)
logger.info("Sending callback to %s, body: %s", self.callback_url, masked_data)
logger.info(
"Sending callback to %s, task_id=%s, status=%s",
self.callback_url,
data.get("task_id"),
data.get("status"),
)
logger.debug("Callback body: %s", masked_data)

# Prepare headers with trace context for distributed tracing
headers = {"Content-Type": "application/json"}
Expand Down