Skip to content

Conversation

@manoelcalixto
Copy link
Contributor

@manoelcalixto manoelcalixto commented Sep 20, 2025

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
Copy link

@Hardanish-Singh Hardanish-Singh left a comment

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
25 checks passed
@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