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:
@@ -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:**
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user