codex - 💡(How to fix) Fix Codex Desktop automations do not dispatch prompt correctly for WSL workspaces [3 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#20415Fetched 2026-05-01 05:43:21
View on GitHub
Comments
3
Participants
3
Timeline
8
Reactions
0
Timeline (top)
labeled ×4commented ×3cross-referenced ×1

Codex Desktop recurring automations fail or stall when configured for a WSL workspace.

The app settings show:

  • Agent environment: Windows Subsystem for Linux
  • Integrated terminal shell: WSL

Workspace paths, redacted:

  • WSL path: /home/<user>/projects/<workspace>
  • Windows WSL UNC path: \\wsl$\Ubuntu\home\<user>\projects\<workspace>

Error Message

Different automation configurations fail in different ways:

Root Cause

Codex Desktop recurring automations fail or stall when configured for a WSL workspace.

The app settings show:

  • Agent environment: Windows Subsystem for Linux
  • Integrated terminal shell: WSL

Workspace paths, redacted:

  • WSL path: /home/<user>/projects/<workspace>
  • Windows WSL UNC path: \\wsl$\Ubuntu\home\<user>\projects\<workspace>

Fix Action

Fix / Workaround

Created thread but did not dispatch prompt:

  • Thread: 019dde5f-1b7d-7981-93e4-22f5a26d55f7
  • Automation: weekly-engineering-summary
  • Source cwd: /home/<user>/projects/<workspace>
  • Status stayed IN_PROGRESS
  • Session JSONL had only 2 records: session metadata and thread title update

The runner either archives before thread creation, opens a thread with an invalid cwd, or creates a valid thread but never dispatches the automation turn.

RAW_BUFFERClick to expand / collapse

Summary

Codex Desktop recurring automations fail or stall when configured for a WSL workspace.

The app settings show:

  • Agent environment: Windows Subsystem for Linux
  • Integrated terminal shell: WSL

Workspace paths, redacted:

  • WSL path: /home/<user>/projects/<workspace>
  • Windows WSL UNC path: \\wsl$\Ubuntu\home\<user>\projects\<workspace>

Observed behavior

Different automation configurations fail in different ways:

  1. execution_environment = "worktree" + Linux cwd

    • Runs launched with Windows cwd / PowerShell, e.g. C:\projects\<workspace>.
    • $env:CODEX_HOME was null.
    • Runs became archived.
  2. execution_environment = "worktree" + WSL UNC cwd

    • Run was archived before a real thread was created.
    • DB row had thread_id = pending:....
    • No session JSONL was created.
  3. execution_environment = "local" + WSL UNC cwd

    • A thread was created.
    • Chat immediately showed: Current working directory missing / This chat's working directory no longer exists.
    • The UNC path is invalid inside the WSL agent environment.
  4. execution_environment = "local" + Linux cwd

    • A valid project chat was created.
    • The automation prompt was never submitted.
    • Session JSONL only had session metadata and thread title update.
    • No user automation prompt, model request, tool call, or assistant message occurred.

Concrete run IDs

Archived before thread creation:

  • Run row: pending:45c38c72-3dc1-4912-b654-d011a5b0e93f
  • Automation: weekly-engineering-summary
  • Source cwd: \\wsl$\Ubuntu\home\<user>\projects\<workspace>

Created thread but did not dispatch prompt:

  • Thread: 019dde5f-1b7d-7981-93e4-22f5a26d55f7
  • Automation: weekly-engineering-summary
  • Source cwd: /home/<user>/projects/<workspace>
  • Status stayed IN_PROGRESS
  • Session JSONL had only 2 records: session metadata and thread title update

Earlier runs that launched through Windows/PowerShell:

  • Thread: 019dde4a-cffb-7432-bb64-54bae4ab0707
  • Thread: 019dde4a-cb15-7201-ac38-f9bc9bdc189b

Expected behavior

For WSL agent environment, automation runs should:

  • Use the Linux cwd inside WSL.
  • Start the session in WSL, not Windows PowerShell.
  • Submit the automation prompt after creating the thread.
  • Either complete with an inbox item or expose an explicit error.

Actual behavior

The runner either archives before thread creation, opens a thread with an invalid cwd, or creates a valid thread but never dispatches the automation turn.

Environment

  • Codex Desktop on Windows with WSL enabled
  • Codex CLI/session metadata showed cli_version = 0.126.0-alpha.8
  • Model used by the automation: gpt-5.5

Additional notes

I am intentionally redacting local project, organization, and repository names from paths in this report. The concrete thread IDs above should allow correlation with backend/client logs if available.

extent analysis

TL;DR

The issue can be resolved by ensuring the correct working directory is used for automations in the WSL environment.

Guidance

  • Verify that the execution_environment is set to "local" and the cwd is set to the Linux path (e.g., /home/<user>/projects/<workspace>) to ensure the automation runs in the WSL environment.
  • Check the session JSONL files for any errors or missing records that may indicate why the automation prompt is not being submitted.
  • Test the automation with a simple script to isolate the issue and determine if it's specific to the weekly-engineering-summary automation or a more general problem.
  • Review the Codex CLI version and consider updating to a newer version if available, as the current version 0.126.0-alpha.8 may have known issues.

Example

No code snippet is provided as the issue seems to be related to configuration and environment settings rather than code.

Notes

The issue may be specific to the WSL environment and the weekly-engineering-summary automation, so testing with different automations and environments may help isolate the root cause.

Recommendation

Apply a workaround by setting execution_environment to "local" and using the Linux cwd to ensure the automation runs in the WSL environment, as this seems to be the most promising approach based on the provided information.

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…

FAQ

Expected behavior

For WSL agent environment, automation runs should:

  • Use the Linux cwd inside WSL.
  • Start the session in WSL, not Windows PowerShell.
  • Submit the automation prompt after creating the thread.
  • Either complete with an inbox item or expose an explicit error.

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 automations do not dispatch prompt correctly for WSL workspaces [3 comments, 3 participants]