codex - 💡(How to fix) Fix Codex Desktop scheduled automations create empty sessions with no prompt or task turn [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19969Fetched 2026-04-29 06:24:34
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
0
Timeline (top)
labeled ×4commented ×2cross-referenced ×1

Root Cause

Scheduled automations can appear active and may create threads, but silently do no work. This is risky because users may believe scheduled business workflows are running when they are not.

Code Example

Scheduler smoke test only. Do not inspect, create, edit, rename, or delete any files. Simply reply with exactly: TEMP SCHEDULER SMOKE TEST RAN OK at <current local time>.
RAW_BUFFERClick to expand / collapse

Codex Desktop Scheduled Automations Create Empty Sessions

Title

Codex Desktop scheduled automations create empty sessions with no prompt or task turn

Environment

  • Product: Codex Desktop
  • Operating system: Windows
  • Shell: PowerShell
  • Timezone: Australia/Brisbane
  • Codex CLI versions observed in failed scheduled run files:
    • 0.125.0-alpha.3
    • 0.126.0-alpha.8
  • Relevant config:
    • model = "gpt-5.5"
    • [windows] sandbox = "elevated"

Issue

Scheduled cron automations appear to fire enough to create a session/thread, but the saved automation prompt is not injected into the run.

The resulting session contains only startup metadata such as session_meta and thread_name_updated. There is no user prompt, no assistant response, no tool call activity, no token usage event, and no task completion.

Expected Behavior

At the scheduled time, Codex Desktop should:

  1. Create the scheduled automation run.
  2. Inject the saved automation prompt into the session.
  3. Execute the task.
  4. Report the result in the created thread/session.

Actual Behavior

At the scheduled time, Codex Desktop creates a run/session, but no actual automation task starts.

Observed in the smoke-test run:

  • Session file was created shortly after the scheduled time.
  • Working directory was set correctly.
  • thread_name_updated event existed.
  • User messages: 0
  • Assistant messages: 0
  • Tool calls: 0
  • Token events: 0
  • Task completions: 0

Minimal Reproduction

  1. Create a temporary cron automation in Codex Desktop.
  2. Schedule it a few minutes into the future.
  3. Use a harmless prompt:
Scheduler smoke test only. Do not inspect, create, edit, rename, or delete any files. Simply reply with exactly: TEMP SCHEDULER SMOKE TEST RAN OK at <current local time>.
  1. Use a local test workspace.
  2. Wait for the scheduled time.
  3. Inspect the created .jsonl session file.

Redacted Evidence Summary

Smoke-test automation:

  • Temporary automation name: [REDACTED_TEMP_AUTOMATION_NAME]
  • Scheduled local time: 2026-04-28 19:35 Australia/Brisbane
  • Session created local time: approximately 2026-04-28 19:36:59 Australia/Brisbane
  • Session ID: [REDACTED_SESSION_ID]
  • Workspace path: [REDACTED_LOCAL_PATH]
  • Prompt content: harmless smoke-test prompt shown above
  • Result: empty session with session_meta and thread_name_updated only

Earlier scheduled automations showed the same pattern:

  • Scheduled time arrived.
  • A session/thread was created.
  • The automation prompt was not injected.
  • No task turn occurred.
  • No tool calls occurred.
  • No completion event occurred.

Impact

Scheduled automations can appear active and may create threads, but silently do no work. This is risky because users may believe scheduled business workflows are running when they are not.

Sensitive Information Redacted

The following information has been intentionally removed from this report:

  • Local Windows username
  • Business name
  • Client names
  • Full local file paths
  • Real automation names tied to business workflows
  • Real source/output folder names
  • Real business workflow prompts

Request

Please investigate why Codex Desktop scheduled cron automations can create a session/thread without injecting the saved automation prompt or starting a task turn.

extent analysis

TL;DR

The issue can be resolved by investigating the Codex Desktop configuration and cron automation settings to ensure the saved automation prompt is correctly injected into the session.

Guidance

  • Verify that the model = "gpt-5.5" configuration is compatible with the scheduled automation feature.
  • Check the cron automation settings to ensure the prompt is correctly specified and formatted.
  • Review the Codex Desktop logs to identify any errors or warnings related to the scheduled automation feature.
  • Test the scheduled automation with a simple prompt to isolate the issue.

Example

No code snippet is provided as the issue is related to configuration and settings.

Notes

The issue may be specific to the 0.125.0-alpha.3 and 0.126.0-alpha.8 versions of the Codex CLI, and upgrading to a later version may resolve the issue.

Recommendation

Apply a workaround by manually verifying the scheduled automation settings and prompts to ensure they are correct, until the root cause of the issue is identified and resolved.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex Desktop scheduled automations create empty sessions with no prompt or task turn [2 comments, 3 participants]