fix(workflows): add explicit TaskOutput instructions to map-codebase

The workflow spawns 4 background agents but didn't tell Claude how to
wait for them. Without explicit TaskOutput instructions, the orchestrator
displays "Waiting for agents to complete..." indefinitely.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matteo Michele Bianchini
2026-03-18 10:03:40 +00:00
parent 4915d28f98
commit 7eed3bc2df

View File

@@ -172,9 +172,19 @@ Continue to collect_confirmations.
</step>
<step name="collect_confirmations">
Wait for all 4 agents to complete.
Wait for all 4 agents to complete using TaskOutput tool.
Read each agent's output file to collect confirmations.
**For each agent task_id returned by the Agent tool calls above:**
```
TaskOutput tool:
task_id: "{task_id from Agent result}"
block: true
timeout: 300000
```
Call TaskOutput for all 4 agents in parallel (single message with 4 TaskOutput calls).
Once all TaskOutput calls return, read each agent's output file to collect confirmations.
**Expected confirmation format from each agent:**
```