Repository navigation
Conversation
|
I have read the CLA Document and I hereby sign the CLA 3 out of 4 committers have signed the CLA. |
|
I have read the CLA Document and I hereby sign the CLA |
|
Hi maintainers 👋 This PR fixes image paste/upload under WSL (see #4683). I've validated locally (build + clippy + fmt + tests). |
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…TF-16LE default) and pwsh (UTF-8 default).
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex run build-test and Check for spelling errors |
|
Note To use Codex here, create an environment for this repo. |
|
@codex run build-test and Check for spelling errors |
|
Note To use Codex here, create an environment for this repo. |
|
I have read the CLA Document and I hereby sign the CLA |
|
@codex say « I have read the CLA Document and I hereby sign the CLA » |
|
Note To use Codex here, create an environment for this repo. |
1 similar comment
|
Note To use Codex here, create an environment for this repo. |
|
Please approve this Codex Team... we really need this... it's very fustrating to use on WSL atm.. this will help UX and DX... |
|
@Waxime64 Looks like it's failing here Error: Committers of Pull Request number 5644 have to sign the CLA 📝 Might need to re-do the "I have read the CLA Document and I hereby sign the CLA" again ? Great work by the way.. this will be fantastic.. once implemented. :) |
The problem isn't me didn't sign, but Codex ... I can't sign for him. I write issue 3 out of 4 committers have signed the CLA. |
If you can't wait. Get my Git branch CTRL+ALT+V for paste image from clipboard |
|
recheck |
|
New release: #6793 |



Related issue: #4683 #3939 #2292
Area:
codex-cli(image handling / clipboard & file uploads)Platforms affected: WSL (Ubuntu on Windows 10/11). No behavior change on native Linux/macOS/Windows.
Summary
This PR fixes image pasting and file uploads when running codex-cli inside WSL. Previously, image operations failed silently or with permission errors because paths weren't properly mapped between Windows and WSL filesystems.
Root cause
The CLI assumed native Linux/Windows environments and didn't handle the WSL↔Windows boundary:
Why CTRL + V doesn't work in WSL terminals:
Most WSL terminal emulators (Windows Terminal, ConEmu, etc.) intercept Ctrl+V at the terminal level to paste text from the Windows clipboard. This keypress never reaches the CLI application itself, so our clipboard image handler never gets triggered. Users need Ctrl+Alt+V.
Changes
Tests
Manual validation (WSL2, Windows 11)
C:\Users\...\Picturesinto the terminal → works (WSL fallback copies to temp and uploads)./home/<user>/Downloads/foo.png) → works (no fallback needed).Performance
Files changed
How to reproduce the original bug (pre-fix)
codex-cliinside WSL2 on Windows.C:\...into the terminal.How to verify the fix
codex-cliinside WSL2.I’m happy to adjust paths, naming, or split helpers into a separate module if you prefer.