openai / openai/codex

Bug: apply_patch fails with "fs sandbox helper did not stop after its response" on Windows

Open
#41,492 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI sandbox windows-os
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

When using Codex local, the apply_patch component fails to update existing files after executing one or two successful patches. The issue originates entirely within Codex's internal protected editor/sandbox mechanism, rather than the project environment, version control, or OS permissions.

Environment Data
• Codex Version: 26.825.32147
• Operating System: Windows

Observed Behavior & Key Clues
• File Reading works: Codex can read all project files without any issues.
• Command Execution works: Running compilations and shell commands works fine.
• The Failure: After applying 1 or 2 patches successfully, the internal apply_patch component becomes unable to read/lock an existing file for updating, triggering the following error:

Codex local: apply_patch cannot update existing files.

Error: fs sandbox helper did not stop after its response.

What has been ruled out (Not the cause):
• It is not a project issue or source code problem.
• It is not a Git lock
• It is not a generic Windows file permission (ACL) issue, as initial patches go through and reading always works.
• Creating a new Codex chat or restarting Windows does not fix the issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce on Windows by applying one or two successful patches, then updating an existing file and capturing the sandbox helper failure. Trace the internal protected editor/sandbox lifecycle around the helper response; done means repeated apply_patch operations can update existing files without the helper-stop error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.