All `shell_command` invocations time out with exit code 124 when sandboxing is enabled

Resolved 💬 3 comments Opened Nov 21, 2025 by hizukuri Closed Mar 29, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.61.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.1-codex-mini medium

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

  • 環境:
  • Windows 11 + WSL2
  • Ubuntu 24.04.3 LTS
  • カーネル: 6.6.87.2-microsoft-standard-WSL2
  • ワークスペース: /home/WorkSpace(/mnt/c 配下ではない)
  • 現象:
  • 通常起動(sandbox 有効)+非エスカレート shell_command の pwd/ls/echo がすべて exit 124
  • 同じセッションで with_escalated_permissions を付けると即時成功
  • codex --dangerously-bypass-approvals-and-sandbox で起動すると、非エスカレートでも正常に成功

What steps can reproduce the bug?

Uploaded thread: 019aa50b-e0d2-7333-9d23-a226880cc1c8

  • cd /home/WorkSpace
  • codex を起動
  • 「with_escalated_permissions なしで pwd/ls を実行」と指示 → exit 124
  • 同セッション内で「with_escalated_permissions 付きで pwd/ls」を実行 → 成功
  • 同じ環境で codex --dangerously-bypass-approvals-and-sandbox → 非エスカレートも成功

What is the expected behavior?

標準ユーザーの shell_command が sandbox 有効時でも正常に成功すること

Additional information

_No response_

View original on GitHub ↗

3 Comments

vlasky · 8 months ago

@hizukuri I suspect you have pyenv installed in your environment. The latest version 2.6.16 has a compatibility fix to work with codex's sandbox mode. Update it to the latest version using pyenv update. See the following issue for more information:

hizukuri · 8 months ago

@vlasky
Running pyenv update fixed the issue! Thanks for letting me know what was changed—really appreciate everything you’re doing!
I’m not strong in English, so I’m teaming up with Codex to express my thanks.

etraut-openai contributor · 5 months ago

This bug report hasn't received any upvotes or additional posts in three months. Closing.