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
{{ message }}
Repository navigation
File drag-and-drop doesn't work on WSL (Windows paths not recognized) #3
When running OpenCode in WSL via Windows Terminal, dragging files from Windows Explorer into the OpenCode prompt doesn't work. The dropped file paths are treated as plain text instead of being recognized as file attachments.
This happens because:
Windows paths (C:\Users\...) are not recognized — the paste handler only checks for Unix-style paths (/, ~/, file://)
WSL UNC paths (\\wsl$\Ubuntu\..., \\wsl.localhost\...) are not handled
Windows Terminal wraps dropped paths in double quotes — quotes are not stripped during path detection
Steps to Reproduce
Run OpenCode in WSL2 via Windows Terminal
Drag a file from Windows Explorer into the OpenCode prompt
The file path appears as quoted text instead of being attached
Expected Behavior
Dropped files should be recognized and attached, with automatic path conversion:
Activity