Skip to content

Windows: latest sandbox ignores "allow this session" permission #7811

Open

Description

@rudivs

What version of the VS Code extension are you using?

0.4.49

What subscription do you have?

Pro

Which IDE are you using?

VS Code

What platform is your computer?

Windows

What issue are you seeing?

After being prompted and agreeing to use the latest Windows sandbox, the Codex extension now prompts me to accept every change. Clicking on the "Allow this session" option has no effect, it will continue to prompt me every time.

What steps can reproduce the bug?

Install Codex extension and use latest Windows sanbbox. Prompt for edits. Select "Allow this session" - the next edit will also trigger a prompt, regardless of whether it's making another edit to the same file or a different file.

What is the expected behavior?

Selcting "Allow this session" should allow the agent to continue without my involvement.

Additional information

No response

Activity

  1. added
    extension
    on Dec 10, 2025
  2. added
    bug
    windows-os
    sandbox
    on Dec 10, 2025
  3. iceweasel-oai commented on Dec 10, 2025

    @iceweasel-oai
    Contributor

    @rudivs thanks for reporting this. The behavior leads me to believe that the sandbox did not get properly enabled, because when Codex has a sandbox, it should not need to prompt at all for edits in your workspace.

    Do you have a file on your machine (located in CODEX_HOME/ ) called sandbox_commands.rust.log? If so, would you mind sharing it?

  4. bASEstr commented on Dec 17, 2025

    @bASEstr

    @rudivs thanks for reporting this. The behavior leads me to believe that the sandbox did not get properly enabled, because when Codex has a sandbox, it should not need to prompt at all for edits in your workspace.

    Do you have a file on your machine (located in CODEX_HOME/ ) called sandbox_commands.rust.log? If so, would you mind sharing it?

    I have the same issue, and I have found this log but it is huge, filled with calls to powershell.exe and codex.exe . Anything specific you're looking for that I can "ctrl+F" in the file?

  5. nubpro commented on Dec 21, 2025

    @nubpro

    how can I contribute? I am facing the same silly issue here on windows, I have to always press approve on each file even though I am on agent mode

  6. blkot commented on Jan 12, 2026

    @blkot

    this issue bothers me so much

  7. etraut-openai commented on Jan 12, 2026

    @etraut-openai
    Contributor

    @blkot, please refer to our Windows documentation. Have you tried enabling the experimental Windows sandbox?

  8. nubpro commented on Jan 13, 2026

    @nubpro

    @blkot, please refer to our Windows documentation. Have you tried enabling the experimental Windows sandbox?

    he is right, this will resolves the issue

  9. blkot commented on Jan 14, 2026

    @blkot

    @blkot, please refer to our Windows documentation. Have you tried enabling the experimental Windows sandbox?

    Thanks for the guide, i quickly did a test with disable the sandbox and re-enable it in the settings, also tried running vsc as admin, but still. now i moved to macOS and everything works fine, i'll try again when i get access to my winpc.

  10. blkot commented on Jan 14, 2026

    @blkot

    @blkot, please refer to our Windows documentation. Have you tried enabling the experimental Windows sandbox?

    he is right, this will resolves the issue

    thanks for the feedback, i'll test later.

  11. andybak commented on Jan 24, 2026

    @andybak

    Running inside wsl causes a ton of other issues - especially for non-web projects. Can you just fix codex under Windows? Claude has managed it.

  12. pythonaddict commented on Mar 4, 2026

    @pythonaddict

    Use Pycharm with AI Chat plugin. Unlike Visual Studio Code, Codex in PyCharm doesn't ask you for confirmations for simple commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextensionsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions