Windows sandbox helper fails when patching an existing file

Open
#34,000 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust

Research direction

Start by reproducing the Windows sandbox failure using the normal patch tool: create test.txt, then modify its existing line and read back the contents. Trace the source of windows sandbox: helper_unknown_error and compare the existing-file path with the successful file-creation path. Done means existing files can be modified and read back without the helper error.

Written by the indexing model from the issue text.

Description

app bug sandbox tool-calls windows-os
What version of the Codex App are you using (From “About Codex” dialog)?

26.715.4045.0

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

The Codex Windows app can create a new file, but modifying an existing file with
the normal patch tool fails immediately with windows sandbox: helper_unknown_error.

What steps can reproduce the bug?

Feedback ID: no-active-thread-019f74d1-1792-7a51-88bf-84d438e78a85

  1. Open a disposable local folder outside Google Drive and outside Git.
  2. Ask Codex to create test.txt using the normal patch tool.
  3. File creation succeeds.
  4. Ask Codex to modify the existing line in test.txt.
  5. It immediately fails with windows sandbox: helper_unknown_error.

Codex was updated and Windows was fully restarted before repeating the test.
The failure still occurred.

What is the expected behavior?

Codex should modify the existing test.txt file and read back the updated contents without a sandbox/helper error.

Additional information

Actual behavior:

Creating test.txt with the normal patch tool succeeds, but modifying the existing
file immediately fails with:

windows sandbox: helper_unknown_error

I reproduced this in a disposable local folder outside Google Drive and outside
a Git repository. I updated Codex and fully restarted Windows before testing
again. File creation still succeeded, but modification still failed.

Reproduction:

  1. Open a disposable local folder.
  2. Ask Codex to create test.txt using the normal patch tool.
  3. Ask Codex to change the existing line.
  4. The sandbox helper error occurs immediately.

Feedback ID:
no-active-thread-019f74d1-1792-7a51-88bf-84d438e78a85

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

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.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.