getCodexCloudTask retrieves the detailed result of one remote task.
automations/get-codex-task.automation.ts
The task includes its current state, environment, branch, latest-attempt diff summary, current turn ID, latest prompt, every available assistant attempt, and normalized GitHub pull requests. An attempt includes messages, the complete unified diff, its turn status, error, and attempt number. Optional second argument { account } defaults to the project binding. Output remains empty while the remote turn is pending.
Codex Cloud does not currently provide an official public REST API. This
action calls undocumented ChatGPT backend endpoints that may change without
notice.