[Windows 11][Codex CLI/VS Code] Shell execution times out in one repository, succeeds in sibling workspace
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 28/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- powershell, rust
- Lĩnh vực
- cli, operating-systems
Hướng nghiên cứu
Start by tracing Windows sandbox workdir initialization, subprocess creation, and command output delivery; the issue does not identify source files or tests. Compare the failing repository with the sibling workspace and empty directory, and inspect sandbox logs for a supported diagnostic that isolates the failure. Done means identifying a reproducible cause or actionable diagnostic or repair that preserves sandbox protection.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Environment
- Windows 11 Pro x64, build 26200; Windows PowerShell 5.1
- VS Code 1.147.0
- Codex VS Code extension 26.51120.50957 (previously 26.51120.41243)
- Bundled CLI:
codex-cli 0.171.0-alpha.13.2 - Windows sandbox: restricted filesystem/network, approval OnRequest; sandbox logs report
unelevated - Both workspaces are sibling local Git repositories on the same NTFS volume.
Bug
Codex cannot execute or return output from even trivial local commands when the workdir is one particular repository. The same commands succeed inside Codex when opened in another sibling repository under the same parent folder, and in a new empty diagnostic directory. Ordinary PowerShell executes Git and file reads normally in the failing repository.
Reproduction and A/B observations
- Open repository A in a fresh VS Code window/new Codex conversation.
- Request
Get-Location; stdout empty, no useful stderr, command times out and is interrupted (exit code 1 reported). - Invoke
C:\Windows\System32\cmd.exe /d /c cddirectly using Codex execution (not PowerShell-wrapped): same timeout/empty stdout and stderr. - Open repository A's
docssubdirectory as a separate workspace:Get-Locationlikewise times out. - Open sibling repository B in
C:\Oakrose\dev\:Get-Locationsucceeds and prints its path. Also succeeds in an empty diagnostic directory. - From the working diagnostic workspace, set the tool
workdirdirectly to repository A:Get-Locationtimes out. - With VS Code closed out of the execution path, run the bundled CLI from a regular PowerShell using
codex exec --sandbox read-only --ephemeral --cd <repository A>and ask for oneGet-Locationcommand. The agent turn exits 0 but reports empty command output; this is not proof that the command succeeded. - A structured
codex exec --json --ephemeral --sandbox read-only --cd <repository A>diagnostic recorded onecommand_executionitem.startedand noitem.completedevent in the script's parser;item.failedevents were not inspected, so the command's actual result remains unconfirmed.
Diagnostic evidence
- Sandbox log has repeated command
START/FAILURErecords (exit code 1) forGet-Locationand PowerShell, with no explicit access-denied cause. - Sandbox log indicates MXC available and Windows sandbox selection
unelevated. codex doctorrun from repository A reports consistent installation, working auth and WebSocket/reachability, healthy state DB, repo correctly detected, 0 critical failures, with warnings for unverified ripgrep, optional MCP env vars, old thread/rollout discrepancies and non-Dev-Drive location.- Owners, ACL inheritance and
icacls /verifyon the compared top-level paths passed. Sandbox user group is present in both sibling workspaces. - No sandbox, permissions, security product, Git history, or repository configuration was changed to work around the issue.
Expected
PowerShell and cmd.exe read-only commands reliably execute and report their stdout/stderr and command exit status in both supported workspaces, or return an actionable sandbox setup/IPC error.
Actual
Local command execution stalls or loses its result in repository A, independently of shell selection and VS Code integration, while sibling repository B works with the same Codex installation.
Request
Is there a supported diagnostic or repair to isolate Windows sandbox workdir initialization, subprocess creation and tool output-delivery failures without disabling sandbox protection? The repo-specific/sibling-workspace A/B comparison may distinguish this from general CLI connectivity issues.
Related reports
Possibly related, root cause not established: #48593 (workspace-specific sandboxed command hang), #57614 (Windows App Server command/exec timeout), #60397 (PowerShell sandbox timeout).
Privacy: Repository A/B names, private content, user identifiers and sensitive logs are omitted. Reproduction does not require provider credentials or access to production services.
- Ngôn ngữ chính
- Rust
- Star
- 136k
- Fork
- 21.6k
- Merge trung bình
- 1 phút
- Pull request đã merge (30 ngày)
- 997
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openai/codex
-
app bug rate-limits
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Windows PowerShell 5.1: non-ASCII text piped into a native command arrives as `?`Có thể đã có người làm @akhil9tiet đã nhận hôm nay. Đang mởbug CLI tool-calls windows-os
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openai/codex#64139 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug CLI connectivity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
core-plugins: remote bundle install keeps the temp directory before a fallible rename and leaves it behind on failureCó thể đã có người làm @akhil9tiet đã nhận 1 ngày trước. Đang mởbug CLI skills
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openai/codex#63907 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug CLI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openai/codex#63906 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
kornia/kornia-rs#1416 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
My Caps shows "Shared" on private Caps that were never sharedCó thể đã có người làm @AksharP5 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
CapSoftware/Cap#4569 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày