codex_poll
Polls a running Codex task for progress and returns when it completes, needs approval, or disconnects. Waits with exponential backoff unless a custom wait time is provided.
Instructions
轮询当前运行中的 Codex 任务进度. 未传 waitMs 时自动按截断指数退避 (20s -> 40s) 等待. 当任务完成、触发审批或断线时立刻返回.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | 事件游标 (由上一次快照返回, 默认 0) | |
| turnId | Yes | 轮次 ID | |
| waitMs | No | 自定义等待毫秒数 (范围 0..45000, 省略时自动退避) | |
| threadId | Yes | 会话 ID |