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

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 ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗