Skip to content

Bug: Linux sandbox fails with mountinfo path is not absolute after ChatGPT update #47345

Closed

Description

@JamiA97

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

26.917.51856

What subscription do you have?

Plus

What platform is your computer?

Ubuntu 24.04.5 LTS (Noble)

What issue are you seeing?

After the ChatGPT Linux application updated from 26.915.31029 to 26.917.51856, Codex can no longer execute commands using its normal Linux sandbox.

The failure is reproducible directly using the Codex CLI bundled with the ChatGPT application, independently of the GUI or any particular repository.

Environment:

OS: Ubuntu 24.04.5 LTS (Noble)
Kernel: 7.0.0-31-generic
Architecture: x86_64
Bubblewrap: 0.9.0
ChatGPT Linux: 26.917.51856
Previous working ChatGPT version: 26.915.31029
Bundled Codex: codex-cli 0.155.0-alpha.16
Codex binary: /usr/lib/chatgpt/resources/codex

Minimal reproduction:

/usr/lib/chatgpt/resources/codex sandbox /bin/true

Result:

error building bubblewrap command: mountinfo path is not absolute

Exit status is 1.

The same occurs with:

/usr/lib/chatgpt/resources/codex sandbox /bin/pwd

Result:

error building bubblewrap command: mountinfo path is not absolute

Within a normal Codex agent session, sandboxed shell commands and apply_patch fail with the same underlying error. For example, the agent reports:

The normal command sandbox and apply_patch both fail with:
error building bubblewrap command: mountinfo path is not absolute

The underlying system Bubblewrap appears to work correctly:

bwrap --ro-bind / / /bin/true
echo $?

returns:

0

User namespaces are enabled:

$ cat /proc/sys/kernel/unprivileged_userns_clone
1

I also checked /proc/self/mountinfo for mount points that are not absolute:

awk '$5 !~ /^// {print NR ": " $0}' /proc/self/mountinfo

This produces no output.

HOME and PWD are also normal absolute paths (PII redacted):

PWD=/home/
HOME=/home/

Running:

/usr/lib/chatgpt/resources/codex doctor

reports:

18 ok · 1 idle · 1 notes · 1 warn · 0 fail

The one warning concerns historical rollout/session files and appears unrelated. Codex Doctor reports the sandbox configuration as present and the state databases as healthy.

The ChatGPT package update occurred immediately before I began seeing the problem:

2026-09-22 19:16:47 upgrade chatgpt:amd64 26.915.31029 26.917.51856
2026-09-22 19:16:57 status installed chatgpt:amd64 26.917.51856

Codex sandboxing had been working normally before this update.

Restarting Codex and completely restarting the ChatGPT application does not resolve the problem.

This appears to fail while the bundled Codex runtime is constructing the Bubblewrap command, before Bubblewrap executes the requested command. The system bwrap executable itself continues to work normally.

What steps can reproduce the bug?

  1. Install/run ChatGPT Linux 26.917.51856 on Ubuntu 24.04.5 LTS. This version bundles codex-cli 0.155.0-alpha.16.

  2. Open a terminal. No repository or Codex agent session is required.

  3. Confirm the bundled Codex version:

/usr/lib/chatgpt/resources/codex --version

Output:

codex-cli 0.155.0-alpha.16
  1. Attempt to execute a trivial command through the Codex sandbox:
/usr/lib/chatgpt/resources/codex sandbox /bin/true
  1. The sandbox fails before /bin/true is executed:
error building bubblewrap command: mountinfo path is not absolute

The command exits with status 1.

The same failure can be reproduced with:

/usr/lib/chatgpt/resources/codex sandbox /bin/pwd

which produces:

error building bubblewrap command: mountinfo path is not absolute

For comparison, the system Bubblewrap works:

bwrap --ro-bind / / /bin/true
echo $?

Output:

0

I also checked for non-absolute mount points in /proc/self/mountinfo:

awk '$5 !~ /^\// {print NR ": " $0}' /proc/self/mountinfo

This produces no output.

The issue also occurs during normal Codex agent operation: sandboxed shell commands and apply_patch fail with the same mountinfo path is not absolute error.

The problem started after ChatGPT Linux was upgraded from 26.915.31029 to 26.917.51856. Sandboxed command execution was working before the upgrade.

Session ID: Not applicable — the minimal reproduction occurs directly through codex sandbox without starting a model session.

Token limit usage: Not applicable.

Context window usage: Not applicable.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Sep 22, 2026
  2. added
    bug
    CLI
    sandbox
    on Sep 22, 2026
  3. github-actions commented on Sep 22, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. Neoony commented on Sep 22, 2026

    @Neoony

    Adding a related report: an update was just pushed to the VS Code prerelease channel, and it still bundles codex-cli 0.155.0-alpha.16.

    Extension: openai.chatgpt 26.5917.51856
    Environment: VS Code Insiders, WSL2, Linux x64
    Update received: September 22, 2026

    Sandboxed commands fail before execution, including a simple true, with:

    error building bubblewrap command: app-server socket directory has an unsupported host mount at /mnt/wslg/distro; remove the bind-mount alias or nested mount before starting the sandbox
    

    Individually approved commands outside the sandbox succeed. No mounts or sandbox settings were changed.

    This differs from the mountinfo path is not absolute error in the original report, but affects the same bundled backend.

    PR #46125, merged September 17, addresses the WSLg preflight-mask mismatch. The bundled alpha.16 release source predates that fix, yet it is included in the VS Code prerelease pushed today.

    The newly distributed desktop and VS Code packages should be refreshed to include the relevant Linux sandbox fixes

  5. young03600 commented on Sep 23, 2026

    @young03600

    Same issue here.
    My codex version is 26.917.61114.
    .vscode-server/extensions/openai.chatgpt-26.917.61114-linux-x64/bin/linux-x86_64/codex sandbox /bin/true shows:
    error building bubblewrap command: mountinfo path is not absolute

    Quick fix (Useful to me):
    If you are using vscode with codex extension, just rollback the extension version to 26.908.40401. It works as usual.

  6. shi-yang999 commented on Sep 23, 2026

    @shi-yang999

    Same issue here.
    openai.chatgpt
    version:
    26.917.61114

  7. Chihsiao commented on Sep 23, 2026

    @Chihsiao

    The same.
    ChatGPT Desktop 26.917.61114, installed via rpm.

  8. shi-yang999 commented on Sep 23, 2026

    @shi-yang999

    I returned to an earlier version, but the new model is no longer available.

  9. Chaoscontrol commented on Sep 23, 2026

    @Chaoscontrol

    I returned to an earlier version, but the new model is no longer available.

    How to rollback? I'm happy to use the old versions, but at least I'd be able to work. Atm I'm stuck as no project can write files.

  10. namprobe commented on Sep 23, 2026

    @namprobe

    Possibly related WSL2 case, though my error differs from the native-Ubuntu error in this issue. On Ubuntu 24.04.4 in WSL2 (WSL 2.7.14.0, WSLg 1.0.73.2), Codex CLI 0.155.0-alpha.16.3 failed while building the sandbox:

    error building bubblewrap command: app-server socket directory has an unsupported host mount at /mnt/wslg/distro; remove the bind-mount alias or nested mount before starting the sandbox
    

    On my machine, /mnt/wslg/distro was a read-only mount of the same /dev/sdd filesystem as /. Bubblewrap itself could run /bin/true, but Codex sandboxed operations and apply_patch updates/deletes failed.

    Temporary WSL2 workaround, if you do not need Linux GUI apps: add guiApplications=false to the existing [wsl2] section of Windows %UserProfile%\.wslconfig:

    [wsl2]
    guiApplications=false

    Then run wsl --shutdown in PowerShell and reopen WSL. After that, /mnt/wslg/distro was no longer mounted, codex sandbox /bin/true exited successfully, and I verified native file creation, editing, and deletion.

    This disables WSLg GUI apps. It does not establish a fix for the original mountinfo path is not absolute error on native Ubuntu.

  11. young03600 commented on Sep 23, 2026

    @young03600

    I returned to an earlier version, but the new model is no longer available.

    In vscode, I rollback the codex extension to Version 26.908.40401, GPT-6 Astra is still available.

  12. 30 remaining items

  13. aragornii commented on Oct 1, 2026

    @aragornii

    Hopefully not. Going back to 31748 solves the issue, Sol 6.1 isn't available but I'm using Sol 5.6 in any case.

  14. Neoony commented on Oct 1, 2026

    @Neoony

    Hopefully not. Going back to 31748 solves the issue, Sol 6.1 isn't available but I'm using Sol 5.6 in any case.

    you can use 6.1 Sol if you just make it use newer CLI
    Just ask codex to set up custom codex cli for vscode
    Then it will set up
    "chatgpt.cliExecutable": "/home/user/.local/share/codex-backends/0.156.1/bin/codex"
    with newer one
    Then you have extension using newer cli instead of the bundled
    That worked great even with latest prerelease cli (until there would be some code not aligning, vscode ui code <-> newer codex cli)

    Plus you get all kinds of improvements, I am probably anyways just going to continue doing this, since the bundled one is just sooo much behind all the time

  15. young03600 commented on Oct 1, 2026

    @young03600

    Hello guys, If you are using the Codex extension in vscode. OpenAI has released the version 26.928.31416. I've confirmed that the sandbox works as usual, and most importantly, GPT6.1-Sol is available now.

    having any issues sending messages? Now it just eats 8/10 of my messages, or they end up in queue with error. Checking logs, all kinds of thread ... already has an active writer "undefined" is not valid JSON

    Works fine on my end so far. Any specific steps to reproduce the error?

  16. aragornii commented on Oct 1, 2026

    @aragornii

    you can use 6.1 Sol if you just make it use newer CLI Just ask codex to set up custom codex cli for vscode

    Thanks @Neoony, I'll try that.

    Works fine on my end so far. Any specific steps to reproduce the error?

    @young03600 For me, it's as simple as opening a chat (I only tried with an existing chat though before rolling back to 31748) and sending a new message. Most of the times, the message doesn't go through.

  17. Neoony commented on Oct 1, 2026

    @Neoony

    Hello guys, If you are using the Codex extension in vscode. OpenAI has released the version 26.928.31416. I've confirmed that the sandbox works as usual, and most importantly, GPT6.1-Sol is available now.

    having any issues sending messages? Now it just eats 8/10 of my messages, or they end up in queue with error. Checking logs, all kinds of thread ... already has an active writer "undefined" is not valid JSON

    Works fine on my end so far. Any specific steps to reproduce the error?

    Pretty much any time you send another reply in some conversation
    Starting conversation was fine, but the subsequent messages were not
    Tried either in Windows vscode or in WSL on 2 machines, both same (restarting WSL didnt help either)
    Whether its an old chat or new, didnt matter.
    Something wrong with "resuming thread"

  18. young03600 commented on Oct 2, 2026

    @young03600

    @young03600 For me, it's as simple as opening a chat (I only tried with an existing chat though before rolling back to 31748) and sending a new message. Most of the times, the message doesn't go through.

    Pretty much any time you send another reply in some conversation Starting conversation was fine, but the subsequent messages were not Tried either in Windows vscode or in WSL on 2 machines, both same (restarting WSL didnt help either) Whether its an old chat or new, didnt matter. Something wrong with "resuming thread"

    I tried this on my local desktop (Win11) connecting to a remote Linux server via SSH, but I couldn't reproduce the error on my end.
    Anyway, the Codex extension has just been updated to 26.930.21537. The bug might have been fixed in this release.

  19. aragornii commented on Oct 2, 2026

    @aragornii

    Anyway, the Codex extension has just been updated to 26.930.21537. The bug might have been fixed in this release.

    Thanks for your feedback @young03600. Unfortunately, the 26.930.21537 update hasn't solved the send-message bug on my end, it could be something happening only when connecting to WSL2, not sure though.

  20. Neoony commented on Oct 2, 2026

    @Neoony

    Anyway, the Codex extension has just been updated to 26.930.21537. The bug might have been fixed in this release.

    Thanks for your feedback @young03600. Unfortunately, the 26.930.21537 update hasn't solved the send-message bug on my end, it could be something happening only when connecting to WSL2, not sure though.

    I had the same thing on pure Windows though, hmm 🤔

  21. Neoony commented on Oct 2, 2026

    @Neoony

    Also I do not actually see any newer version than 5928 🤷

  22. aragornii commented on Oct 2, 2026

    @aragornii

    Also I do not actually see any newer version than 5928 🤷

    @Neoony 26.930.21537 is on release channel only, not in pre-release.

  23. Neoony commented on Oct 2, 2026

    @Neoony

    Also I do not actually see any newer version than 5928 🤷

    @Neoony 26.930.21537 is on release channel only, not in pre-release.

    what a mess...

  24. Neoony commented on Oct 2, 2026

    @Neoony

    Anyway, the Codex extension has just been updated to 26.930.21537. The bug might have been fixed in this release.

    Thanks for your feedback @young03600. Unfortunately, the 26.930.21537 update hasn't solved the send-message bug on my end, it could be something happening only when connecting to WSL2, not sure though.

    Same here, weird

    A live backend owns the affected conversation. I identified its actual operating-system lock. Three other VS Code extension hosts repeatedly try to resume that same conversation and get rejected.
    The newer extension accepts ordinary messages into a local queue before backend delivery. The previously working 26.5917.62051 used a different sending path. This explains how the composer can clear before Codex receives a message, although the exact loss mechanism remains unproven.
    The "undefined" is not valid JSON warning is a separate extension response bug. It happens after releasing the send lock, so it does not establish that the lock stayed stuck.

    (pretty much same after restarting WSL and only having one vscode codex open)

    Its also not just one issue

    EDIT: the extension had such a good run, barely any issues whole year, every single day used, windows(10+11)/wsl, while everyone with desktop app complaining all the time, until this whole linux/wsl sandbox breaking and then all this D:

    Good thing is that it takes 2 clicks to downgrade (very much unlike the desktop app)

  25. aragornii commented on Oct 3, 2026

    @aragornii

    I'm testing 26.930.31730 and, although there's some delay between clicking the Send button or Enter key and actually seeing the message sent, it seems that most of the messages are going through. It seems that Enter works way better than the Send button.

    EDIT: Actually it seems that the first Enter doesn't work, only the second one. This is getting more and more weird.

  26. Neoony commented on Oct 4, 2026

    @Neoony

    I went to 26.930.41038 Release channel
    And it seems fine now

  27. JamiA97 commented on Oct 15, 2026

    @JamiA97
    Author
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

    CLILinuxappbugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions