codex.getCloudTask retrieves the detailed result and complete turn history of one remote task.
automations/get-codex-task.automation.ts
turns history, and normalized GitHub pull requests. Each turn contains its user prompt and every assistant attempt. An attempt includes messages, the complete inline unified diff, its turn status, error, and attempt number. Top-level attempts contains the current turn’s attempts for convenient result handling. Optional second argument { account } defaults to the project binding.
Task status is pending, ready, applied, error, or unknown. unknown preserves a new provider state so an automation does not wait forever after the backend contract changes.