Skip to content

Commit 3beb87a

Browse files
EightRiceclaude
andcommitted
fix: include result preview in child completion instruction
The instruction field is what actually reaches the parent through the inbox→execution engine path. Previously it only said "check its output with get_output()" with no preview, forcing an extra tool call round-trip every time. Now the first 2000 chars of the child's output are included inline. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b641428 commit 3beb87a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

atn/runtime/agent_registry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ async def on_agent_completed(
287287
"instruction": (
288288
f"Your child agent '{defn.name}' has {status_str}. "
289289
f"Check its output with get_output('{agent_id}')."
290+
+ (f"\n\nResult summary:\n{result_preview}" if result_preview else "")
290291
),
291292
},
292293
)

0 commit comments

Comments
 (0)