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
Same
OS: Windows 11
Codex-Cli version : 0.46 installed with npm install -g @openai/codex
Execute WSL
move to project directory
type codex for start codex-cli
paste image not working
Summary (WSL): image paste/drag does not attach the actual image
In WSL terminals, pasting or drag-and-dropping an image does not transfer binary data to Codex TUI. Most terminals only insert a Windows path string like C:\Users\me\Desktop\shot.png (or nothing), so the TUI never receives an image payload.
Environment
Windows 11 + WSL2 (Ubuntu)
Terminal: Windows Terminal / conhost (same behavior with most terminals)
Codex CLI 0.48.0 (also reproducible in 0.47.x)
Expected
Paste or drag an image → Codex attaches the image to the message.
Actual
Paste → nothing or plaintext path.
Drag-and-drop → plaintext C:\... path inserted in the composer; no image attached.
Root cause (why this happens)
PTY/TTY is a text channel; there’s no standard VT/ANSI protocol for binary file upload.
The Windows↔WSL clipboard bridge is text-only for paste events.
Terminals commonly convert drag-and-drop into a path string, not a file upload.
Product enhancement proposal
If Codex detects that paste/drag produced a Windows path (not binary), it could:
Offer to copy the file into a temp folder (e.g., ~/.codex/tmp/images/<sha>.png or project-local ./.codex/tmp/images/),
Attach that temp file automatically,
Prompt to auto-delete after send (rememberable preference).
This would make drag-and-drop usable in WSL without requiring users to switch to --image manually.
Activity
github-actions commentedon Oct 3, 2025
Potential duplicates detected:
Powered by Codex Action
dedrisian-oai commentedon Oct 3, 2025
This used to work?
Waxime64 commentedon Oct 17, 2025
Same
OS: Windows 11
Codex-Cli version : 0.46 installed with npm install -g @openai/codex
Execute WSL
move to project directory
type codex for start codex-cli
paste image not working
esdrasrenan commentedon Oct 22, 2025
paste image not working also
yaliyy commentedon Oct 23, 2025
paste image not working also
Waxime64 commentedon Oct 24, 2025
Summary (WSL): image paste/drag does not attach the actual image
C:\Users\me\Desktop\shot.png(or nothing), so the TUI never receives an image payload.Environment
Expected
Actual
C:\...path inserted in the composer; no image attached.Root cause (why this happens)
Product enhancement proposal
If Codex detects that paste/drag produced a Windows path (not binary), it could:
~/.codex/tmp/images/<sha>.pngor project-local./.codex/tmp/images/),This would make drag-and-drop usable in WSL without requiring users to switch to
--imagemanually.Waxime64 commentedon Oct 30, 2025
Pull request: #5644
etraut-openai commentedon Nov 14, 2025
Closing in favor of #3939