Repository navigation
Description
What version of the Codex App are you using (From "About Codex" dialog)?
Codex Desktop 26.825.51511 (build 7377).
Bundled Codex CLI/app-server: 0.151.0-alpha.7.2.
What subscription do you have?
ChatGPT subscription; exact tier was not available in the diagnostic data used for this report.
What platform is your computer?
Darwin 25.5.0 arm64 arm
macOS 26.5.1 (25F80), Apple Silicon.
What issue are you seeing?
A standalone local cron automation fails before its saved prompt reaches the model because Codex Desktop injects a synthetic codex_app/automation_update function_call_output without a call_id.
The Responses HTTP endpoint rejects the first turn with:
function_call_output requires call_id on HTTP requests; continuation via previous_response_id is only supported on Responses WebSocket v2
Environment:
- automation kind: local standalone
cron - target: projectless
- status:
ACTIVE - model:
gpt-5.6-sol - provider: OpenAI-compatible custom HTTP endpoint (hostname redacted)
- wire API:
responses - reasoning effort:
medium
The generated thread contains this first input item:
type = functionCallOutput
id = fco_<redacted>
namespace = codex_app
name = automation_update
call_id = <missing>
output = <automation metadata and saved prompt, redacted>
The turn then fails in about two seconds. There is no assistant response, the automation prompt never reaches the model, and none of the automation's MCP work begins.
The failure also persists into the generated thread. Sending a normal user message such as why immediately produces the same error again, with no model output. In this reproduction there were two consecutive failed turns:
2026-09-01 16:23:30 +0800 automation bootstrap turn: failed
2026-09-01 16:23:43 +0800 ordinary follow-up turn: failed
This suggests that the invalid bootstrap item is persisted or replayed, making the generated thread unusable after the first scheduled failure.
What steps can reproduce the bug?
- Configure an OpenAI-compatible provider with a custom HTTP
base_urlandwire_api = "responses". - Select
gpt-5.6-sol. - Create an active standalone local cron automation targeting a projectless task. A minimal saved prompt such as
say hiis sufficient. - Allow the scheduler to trigger the automation.
- Open the generated automation thread.
- Observe that the automation metadata card appears, followed immediately by the
function_call_output requires call_id on HTTP requestserror. - Send an ordinary user message in the same generated thread.
- Observe that the follow-up also fails with the same error.
The affected session ID is:
01a05c10-f2c7-77f2-8fa1-a8802bfa1279
The endpoint, automation ID, automation name, saved business prompt, local paths, and account details are intentionally omitted.
What is the expected behavior?
- Codex must not serialize an unsolicited automation bootstrap as a
function_call_outputwithout a matchingcall_idon the Responses HTTP transport. - The automation bootstrap should be represented as a normal attributable message, or Codex should preserve a real preceding function call and matching
call_id. - The saved automation prompt should reach the model and the scheduled work should execute.
- A failed scheduled bootstrap must not make the generated thread permanently fail on subsequent ordinary user messages.
Additional information
This appears to share the root cause of:
- Codex Desktop macOS: Azure gpt-5.6-sol automations fail because bootstrap output has no call_id #41799 - Azure
gpt-5.6-solautomations fail because bootstrap output has nocall_id - Codex Desktop automation + DeepSeek Responses: standalone automation_update output lacks call_id (HTTP 400) #41690 - DeepSeek Responses automation bootstrap lacks
call_id
This reproduction adds two details:
- The endpoint returns the more specific HTTP/WebSocket-v2 transport error shown above.
- The generated standalone automation thread remains unusable on a later ordinary user turn, rather than only losing one scheduled run.
The scheduler itself appears to work: it creates the run and thread and injects the automation metadata. The failure is at the app-server/Responses serialization boundary before model execution.
Activity
github-actions commentedon Sep 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
michaelmanly commentedon Sep 1, 2026
@saul-LinY
interesting one. is the reason you’re using Codex’s built in cron because you need the scheduled task to run through Codex specifically, or would you be fine running the same repo/prompt/agent command from an external job runner?
saul-LinY commentedon Sep 3, 2026
Thanks for following up. I’ve identified the cause: this was not an issue with Codex’s built-in scheduler itself. The Sub2API gateway was treating Codex’s scheduled-task bootstrap payload as a regular
function_call_outputand rejecting it because it did not contain acall_id.Sub2API has now fixed this compatibility issue in v0.2.0, and scheduled tasks are working correctly after upgrading the gateway. Therefore, I no longer need an external job runner as a workaround.