Skip to content

VS Code extension bundled Codex 0.116 fails on Rocky 8 with bwrap: Unknown option --argv0 #15291

Closed

Description

@reeya2022

What version of the IDE extension are you using?

openai.chatgpt-26.318.11754-linux-x64

What subscription do you have?

Plus

Which IDE are you using?

VS Code Remote SSH

What platform is your computer?

Linux 4.18.0-553.69.1.el8_10.x86_64 x86_64 x86_64

What issue are you seeing?

After updating to the latest VS Code extension, Codex agent mode fails with bwrap: Unknown option --argv0 on Rocky Linux 8.10.

This appears to be a regression in the extension-bundled Codex, because downgrading the extension by one version avoids the problem.

The same error can also be reproduced directly with the extension-bundled Codex binary by running ~/.vscode-server/extensions/openai.chatgpt-26.318.11754-linux-x64/bin/linux-x86_64/codex sandbox linux /bin/true.

What steps can reproduce the bug?

1.Use Rocky Linux 8.10 with /usr/bin/bwrap at version 0.4.0.

2.Update to the latest OpenAI Codex VS Code extension.

3.Open Codex in VS Code and trigger an agent action that uses the Linux sandbox, or run ~/.vscode-server/extensions/openai.chatgpt-26.318.11754-linux-x64/bin/linux-x86_64/codex sandbox linux /bin/true.

4.Observe the error bwrap: Unknown option --argv0.

5.Downgrade the extension by one version and confirm the problem no longer occurs.

What is the expected behavior?

Codex should work on Rocky Linux 8.10 without failing on bwrap: Unknown option --argv0.

It should either work with the available system bwrap, fall back to a compatible vendored bubblewrap, or provide a supported way to point Codex to a newer bwrap.

Additional information

On this system, /usr/bin/bwrap --version is bubblewrap 0.4.0 and /usr/local/bin/bwrap --version is bubblewrap 0.9.0.

I installed 0.9.0 separately under /usr/local/bin because Rocky Linux 8 only provides 0.4.0, but the bundled VS Code Codex still fails.

Restarting VS Code Server did not help. Reordering PATH did not help. Setting BWRAP=/usr/local/bin/bwrap did not help. Setting BUBBLEWRAP=/usr/local/bin/bwrap did not help.

The extension log shows: [CodexMcpConnection] cli: message="codex_core::tools::router: error={"output":"bwrap: Unknown option --argv0\n","metadata":{"exit_code":1,"duration_seconds":0.0}}".

From local investigation, this looks like a regression in the newer bundled Codex / Linux sandbox behavior, because the previous extension version does not have this problem.

Activity

  1. added
    extension
    on Mar 20, 2026
  2. added
    bug
    sandbox
    on Mar 20, 2026
  3. github-actions commented on Mar 20, 2026

    @github-actions
    Contributor
  4. reeya2022 commented on Mar 20, 2026

    @reeya2022
    Author

    Likely duplicate of #15283.

  5. removed
    extension
    on Mar 20, 2026
  6. awn commented on Mar 20, 2026

    @awn

    Similar problem on Oracle Linux 9 with codex-cli 0.116.0: "bwrap: Unknown option --argv0"
    Installed (and most fresh available) version of bubblewrap is 0.6.3

  7. OneTokens commented on Mar 23, 2026

    @OneTokens

    Similar problem on Ubuntu 22.04.5 LTS with codex extention in vscode remote ssh: "bwrap: Unknown option --argv0"

  8. viyatb-oai commented on Mar 26, 2026

    @viyatb-oai
    Contributor

    This should be fixed in Codex 0.117.0 by #15693, which fixes compatibility with older system bubblewrap versions that do not support --argv0.

    Please update to 0.117.0 and let us know if you're still seeing this.

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

    bugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions