You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed to apply patch due to encoding issues #9580
CLIIssues related to the Codex CLIbugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
What terminal emulator and version are you using (if applicable)?
Windows Terminal
What issue are you seeing?
✘ Failed to apply patch
└ execution error: Io(Custom { kind: Other, error: "windows sandbox join error: task 5601 panicked with message "byte index 200 is not a char
boundary; it is inside '阴' (bytes 199..202) of D:\\\\Download\\\\npm-global\\\\node_modules\\\\@openai\\\\codex\\\\vendor\\\\x86_64-pc-windows-msvc\ \\\codex\\\\codex.exe --codex-run-as-apply-patch *** Begin Patch\\n*** Update File: frontend/src/styles/variables.css\\n@@\\n /* 阴影 */\\n --sm- shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04)[...]"" })
• The patch tool fails on non-ASCII Chinese characters, so I'll avoid apply_patch and use a Python script to insert lines after the --sm-shadow-2
substring, ensuring ASCII safety.
What steps can reproduce the bug?
This issue may occur when Chinese characters are present in the code.
What is the expected behavior?
No response
Additional information
No response
Reacted by Muhammad Umair Shahid and Muhammad Umair Shahid
Please use the /feedback slash command to upload your logs and session details for the session where the failure occurred. Then post the thread ID here.
CLIIssues related to the Codex CLIbugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Activity
etraut-openai commentedon Jan 21, 2026
Please use the
/feedbackslash command to upload your logs and session details for the session where the failure occurred. Then post the thread ID here.umairshahid-1 commentedon Jan 22, 2026
#9661 is also the same issue. @etraut-openai
etraut-openai commentedon Jan 22, 2026
@umairshahid-1, these look like different issues. This problem is related to text encoding. The other is related to permissions.