Skip to content

fix(tui): handle WSL clipboard image paths - #3990

Merged
dylan-hurd-oai merged 4 commits into
openai:mainfrom
manoelcalixto:manoel/pr-3988-draft
Dec 2, 2025
Merged

dylan-hurd-oai merged 4 commits into
openai:mainfrom
manoelcalixto:manoel/pr-3988-draft

Conversation

@manoelcalixto

@manoelcalixto manoelcalixto commented Sep 20, 2025 •

Copy link
Copy Markdown
Contributor

Fixes #3939
Fixes #2803

Summary

  • convert Windows clipboard file paths into their /mnt/<drive> equivalents when running inside WSL so pasted images resolve correctly
  • add WSL detection helpers and share them with unit tests to cover both native Windows and WSL clipboard normalization cases
  • improve the test suite by exercising Windows path handling plus a dedicated WSL conversion scenario and keeping the code path guarded by targeted cfgs

Testing

  • just fmt
  • cargo test -p codex-tui
  • cargo clippy -p codex-tui --tests
  • just fix -p codex-tui

Screenshots

Codex TUI screenshot:
describe this copied image

GitHub docs directory screenshot:
image-copied

@manoelcalixto
manoelcalixto marked this pull request as ready for review September 20, 2025 19:36

@Hardanish-Singh Hardanish-Singh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅

@dylan-hurd-oai
dylan-hurd-oai merged commit 32e4a3a into openai:main Dec 2, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image pasting in Windows to WSL in Terminal directly from clipboard Image support not working at all on Windows through WSL

4 participants