codex_wait
Block until one or more Codex subagent tasks finish and return their results. Omit task IDs to wait for all running tasks in the current session.
Instructions
阻塞等待一个或多个任务结束并返回它们的结果。不传 ids 就等本会话全部运行中的任务。超时只是返回当前状态,任务不会被杀,可以再次调用继续等。已结束的任务立即返回。等待期间每 10 秒发一次进度通知。只想看一眼不想等,用 codex_status。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | 任务 id 列表(codex_spawn / codex_review 返回的 8 位 id);省略 = 全部运行中的任务 | |
| mode | No | all=全部结束才返回(默认),any=任一结束就返回 | |
| timeout | No | 最长等待秒数,默认 600,上限 3000 |