Repository navigation
fix(windows): resolve sandbox access, keyring limits, and concurrency race conditions - #10648
Ashutosh0x wants to merge 3 commits into
Conversation
Fixes openai#10353 Windows Credential Manager has a 2560-byte limit for UTF-16 encoded passwords. OAuth tokens often exceed this limit, causing authentication failures. This change implements transparent chunking for large values: - Values exceeding 1024 characters are split into chunks - Main key stores header with chunk count and first chunk - Additional chunks stored in account:1, account:2, etc. - Load/delete operations automatically handle chunked values Tested on Windows 11 with values up to 5000 characters.
…profile loading This commit addresses two issues: 1. **Windows Sandbox Root Access (fixes openai#10352)** - Added standard Windows SIDs (Everyone, Authenticated Users, Builtin Users) to restricted tokens to enable read access to root directories - Sandbox can now list C:\ and read system files like win.ini 2. **Default Shell Profile Loading (addresses openai#4843)** - Changed experimental_use_profile default to rue so shell profiles (.bashrc, conda, etc.) are loaded by default - Users can still opt out with explicit login: false 3. **Test Fixes** - Fixed git_info tests to skip when running inside existing git repos - Fixed turn_diff_tracker tests for Windows temp path normalization - Fixed PowerShell safe command test to use standard Windows PowerShell path - Fixed skills loader test for non-git workspace scenarios All 972 tests pass with 0 failures.
|
Closing this as I see the team has updated contribution guidelines to invitation-only. I've shared the analysis and root-cause findings in issue #10352 instead. Happy to submit a PR if invited! |
- Implemented named mutexes for sandbox refresh and elevated setup - Orchestrator now skips redundant refreshes instead of colliding - Cleaned up named mutex logic for reuse across sandbox components - Verified fix resolves 'exit code 1' reported in issue openai#10601 when running alongside dev servers like Bun
d80970d to
b10b753
Compare
|
We've updated our contribution guidelines to indicate that we're no longer accepting unsolicited code contributions. All code contributions are by invitation only. To read more about why we've taken this step, please refer to this announcement. |
|
Hello @etraut-openai, In line with the updated contribution guidelines, I've prepared a detailed analysis for PR #10648 (Fixes #10352 and #4843). This addresses core Windows stability issues in the sandbox and shell environments. What?Enable root directory access in the Windows sandbox and ensure default shell profiles (like Why?
How?
These changes significantly improve the Windows "out-of-the-box" experience. If this aligns with your roadmap for platform stability, I'd appreciate the opportunity to reopen this discussion. |
|
/Codex Desktop sandbox command runner appears broken on Windows, while non-sandbox execution works. Minimal repro: Observed behavior in sandbox:
Observed behavior outside sandbox:
What I already checked:
Additional note:
This looks like a Windows sandbox / process-launch issue in Codex Desktop rather than a local cmd or project problem. |
Summary
This PR addresses several critical Windows-specific issues identified in the sandbox and credential management systems. These fixes significantly improve reliability for Windows users, especially when working in large repositories or active development environments.
Major Changes
1. Windows Sandbox Root Access (#10352, #7151)
ReadOnlyandWorkspaceWritemodes lacked standard Windows SIDs (Everyone,Authenticated Users), causing "Access Denied" errors when accessing root directories or using compiler toolchains like Dotnet.2. Windows Keyring Length Limit (#10353)
keyring-store. Large tokens are now split into 2KB segments and reassembled automatically upon retrieval.3. Sandbox Setup Reliability & Diagnostics (#10601, #9744, #9661)
Local\CodexSandboxSetupRefresh) to prevent "exit code 1" collisions during concurrent refreshes.codex-windows-sandbox-setup.exehelper. Instead of a generic "rejected" status, users now receive a clear error if the binary is missing (common in extension-bundled CLI versions).4. Git & Edit Inconsistency
TurnDiffTracker.git_infotests to correctly identify repo roots when running inside existing repositories.Verification
dotnet buildworks in the sandbox and edit application is reliable even with CRLF files.Addresses #10352, #10353, #10601, #7151, #9661, #9744.