> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Continue cloud task

> Start another remote turn on an existing Codex cloud task.

`continueCodexCloudTask` sends a follow-up instruction to an existing task.

```ts automations/continue-codex-task.automation.ts theme={null}
import { automation, onSchedule } from "automate.ax"
import { continueCodexCloudTask } from "automate.ax/codex"

export default automation("Continue Codex task", () => {
  onSchedule({ schedule: "0 10 * * 1-5" })
  const turn = continueCodexCloudTask({
    mode: "code",
    prompt: "Run the full test suite and fix any failures.",
    taskId: "task_e_abc123",
  })

  turn.turnId
  turn.url
})
```

`mode` defaults to `code`, which lets the remote agent change the repository. Use `ask` for a response without repository changes. By default, the action continues the task's current assistant turn; pass `turnId` to continue a specific turn. Optional second argument `{ account }` defaults to the project binding. The returned turn starts asynchronously.

<Warning>
  Codex Cloud does not currently provide an official public REST API. This
  action calls undocumented ChatGPT backend endpoints that may change without
  notice.
</Warning>
