Skip to content

Image clipboard does not work in WSL when interop is disabled (Feudora) #7599

@Waxime64

Description

@Waxime64

What version of Codex is running?

0.66

What subscription do you have?

Plus

Which model were you using?

All

What platform is your computer?

WSL2 with Fedora Linux distribution

What issue are you seeing?

When running under WSL, if interop is disabled, image clipboard operations stop working. Copy/paste of images between Windows and WSL (or within WSL apps that rely on the clipboard bridge) fails: no image data is received on the WSL side.

What steps can reproduce the bug?

What steps can reproduce the bug?
On Windows 11, install and configure WSL2 with a Fedora Linux distribution.
Disable WSL interop for the distribution (for example via configuration so that Windows interop is turned off).
Start the Fedora WSL instance.
In Windows, copy an image to the clipboard (e.g., from a browser or image viewer).
In WSL, use an application or tool that reads the clipboard image (or try to paste the image into a WSL GUI app, if available).
Observed result: the paste/clipboard operation fails and no image data is available in the WSL environment as long as interop is disabled.

What is the expected behavior?

On Windows 11, install and configure WSL2 with a Fedora Linux distribution. (wsl.exe --install -d Feudora --no-launch)

Start the Fedora WSL instance.
In Windows, copy an image to the clipboard (e.g., prinscreen).
In WSL, paste image with CTRL+ALT+V).

Observed result: the paste/clipboard operation fails and no image data is available in the WSL environment as long as interop is disabled and the error message isn't good

Additional information

This command send error when interop is disabled
powershell.exe -NoProfile -Command "Write-Output OK"

Tips for detect the problem
If interop is enable, CTRL+ALT+V work: Ubuntu (Default Linux on WSL2), Debian

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions