Skip to content

Windows Codex loses foreground command execution handle after ~30 seconds — #38069

Description

@joeyb1102

What version of the Codex App are you using (From “About Codex” dialog)?

26.805.11740

What subscription do you have?

Plus

What platform is your computer?

Windows 11

What issue are you seeing?

Codex version: 26.805.11740
OS: Windows 11
Sandbox: Workspace write
Codex Workspace Diagnose: Dependencies look healthy

Problem

Codex repeatedly loses the execution/session handle for foreground commands after approximately 30 seconds.

The failure occurs with:

exec cell 11 not found

This initially appeared during Playwright tests, but I reproduced it with a minimal PowerShell command that does not use Node.js, Playwright, Git, or my project.

Minimal reproduction

Run a foreground PowerShell command that emits a heartbeat every 10 seconds for 90 seconds:

1..9 | ForEach-Object {
Write-Output ("CODEX-RUNNER-HEARTBEAT " + $_ + "/9 " + (Get-Date -Format "HH:mm:ss"))
Start-Sleep -Seconds 10
}
Write-Output "CODEX-RUNNER-DIAGNOSTIC-COMPLETE"
Result
RESULT: FAIL
HEARTBEATS OBSERVED: 3/9
FINAL MARKER OBSERVED: NO
EXIT CODE: unavailable
EXECUTION-HANDLE ERROR: exec cell 11 not found
TOTAL DURATION: approximately 30 seconds

The command is started successfully, but Codex loses the execution handle before the process completes.

Restarting Windows did not fix the problem.
Workspace dependencies diagnose as healthy.

The same long-running Playwright command completes normally when executed directly in Windows PowerShell outside Codex.

This appears to be a Windows Codex command-runner/session-management issue rather than a Node, Playwright, Git, or project-specific problem.

Reproduced: August 11, 2026, around 4:00 PM EDT.

What steps can reproduce the bug?

Codex version: 26.805.11740
OS: Windows 11
Sandbox: Workspace write
Codex Workspace Diagnose: Dependencies look healthy

Problem

Codex repeatedly loses the execution/session handle for foreground commands after approximately 30 seconds.

The failure occurs with:

exec cell 11 not found

This initially appeared during Playwright tests, but I reproduced it with a minimal PowerShell command that does not use Node.js, Playwright, Git, or my project.

Minimal reproduction

Run a foreground PowerShell command that emits a heartbeat every 10 seconds for 90 seconds:

1..9 | ForEach-Object {
Write-Output ("CODEX-RUNNER-HEARTBEAT " + $_ + "/9 " + (Get-Date -Format "HH:mm:ss"))
Start-Sleep -Seconds 10
}
Write-Output "CODEX-RUNNER-DIAGNOSTIC-COMPLETE"
Result
RESULT: FAIL
HEARTBEATS OBSERVED: 3/9
FINAL MARKER OBSERVED: NO
EXIT CODE: unavailable
EXECUTION-HANDLE ERROR: exec cell 11 not found
TOTAL DURATION: approximately 30 seconds

The command is started successfully, but Codex loses the execution handle before the process completes.

Restarting Windows did not fix the problem.
Workspace dependencies diagnose as healthy.

The same long-running Playwright command completes normally when executed directly in Windows PowerShell outside Codex.

This appears to be a Windows Codex command-runner/session-management issue rather than a Node, Playwright, Git, or project-specific problem.

Reproduced: August 11, 2026, around 4:00 PM EDT.

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions