Rebase onto upstream (a4d95fd) #12

Closed
wylab wants to merge 144 commits from rebase-onto-upstream into main
Showing only changes of commit c13c8c3ad5 - Show all commits
+5 -3
View File
@@ -196,13 +196,15 @@ class SubagentManager:
"""Announce the subagent result to the main agent via the message bus."""
status_text = "completed successfully" if status == "ok" else "failed"
# Child subagents (spawned by other subagents) store results silently.
# The parent orchestrator collects them via wait_for_subagents.
# ALWAYS store result so wait_for_subagents can find it
self._task_results[task_id] = result
# Child subagents (spawned by other subagents) don't announce - parent waits for them
if origin["channel"] == "subagent":
self._task_results[task_id] = result
logger.debug(f"Subagent [{task_id}] stored result silently (child subagent)")
return
# Top-level subagents announce via bus to trigger main agent
announce_content = f"""[Subagent '{label}' {status_text}]
Task: {task}