Resume asynchronous work from the conversation's existing context.
Check the current thread's Goal (get_goal when available). If a Goal already
covers this wait, follow its continuation and stopping rules, and retire this
skill's automatic heartbeat for the same wait.
For other waits, choose the continuation path for the session's role:
- Global and project controllers use
codex-session-controllerfor follow-up mode selection, checks, and scheduling. - Workers and ordinary tasks use the loop below for their own internal waits.
- After starting asynchronous work, continue any independent work. When none
remains and the expected wait is long, such as a lengthy build or extended
research running in a subagent or background task, use
automation_updateto schedule a one-time heartbeat in the current task (destination: "thread"), then end the turn. Choose a delay from the expected duration, usually 5, 10, or 15 minutes. Set the prompt tocontinue. - On wakeup, check the existing work and apply step 1 again: reassess independent work and the expected wait before deciding whether to continue or schedule another wakeup and end the turn. Stay quiet when nothing actionable changed.
- Reuse this follow-up's automation ID for later checks. Pause or delete this follow-up when its work is complete or canceled, or its wait ends.
If scheduling is unavailable or fails, report the failure and the remaining wait.