Skip to content

[app][macOS] Local cron automation injects call_id-less bootstrap and bricks generated thread on Responses HTTP #42014

Closed

Description

@saul-LinY

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?

  1. Configure an OpenAI-compatible provider with a custom HTTP base_url and wire_api = "responses".
  2. Select gpt-5.6-sol.
  3. Create an active standalone local cron automation targeting a projectless task. A minimal saved prompt such as say hi is sufficient.
  4. Allow the scheduler to trigger the automation.
  5. Open the generated automation thread.
  6. Observe that the automation metadata card appears, followed immediately by the function_call_output requires call_id on HTTP requests error.
  7. Send an ordinary user message in the same generated thread.
  8. 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_output without a matching call_id on 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:

This reproduction adds two details:

  1. The endpoint returns the more specific HTTP/WebSocket-v2 transport error shown above.
  2. 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

  1. added
    bug
    app
    app-server
    custom-model
    on Sep 1, 2026
  2. github-actions commented on Sep 1, 2026

    @github-actions
    Contributor
  3. michaelmanly commented on Sep 1, 2026

    @michaelmanly

    @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?

  4. saul-LinY commented on Sep 3, 2026

    @saul-LinY
    Author

    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_output and rejecting it because it did not contain a call_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appapp-serverautomationsbugcustom-model

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions