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
CLI input issues on WSL Ubuntu: no multiline input and copy/paste not working #7297
I think I encounter a similar issue. Just posting here to double check if it is related.
Environment
Windows 11
Windows Terminal with Git Bash
opencode updated today via scoop
Issue
Sometimes when I use Ctrl + V, opencode displays Pasted ~xx lines and sometimes it just pastes whatever is in the clipboard as input. The latter is very annoying, since it will submit multiple messages, and often open multiple sessions that start doing mysterious things in the background.
I haven't found a pattern to this, but these things seem to make the issue less likely:
🟩 Host: Laptop with Win11
🟩 WSL: Inside Win11 I run WSL with Ubuntu 20.04
🟩 Docker: Yet the ubuntu in WSL is not the one running the OpenCode. It runs a docker engine. Inside the docker engine I run a container with Ubuntu 24.04
🟩 OpenCode: It runs in a bash, in the inner ubuntu, which is running in a docker container, which is run by the docker engine running in the outer ubuntu, which in turn runs on the WSL.
To CLI-in I have this in windows:
🟧 One small icon with this command: C:\Windows\System32\bash.exe -c /files/bin/sf7 where the script /files/bin/sf7 lives in the WSL filesystem. And sf7 does this: docker exec -u ubuntu -it devel-sf7 bash -c 'cd '${PWD}'; exec ${SHELL}'
This way, clicking this icon in windows directly enters into a bash.exe (windows) which takes me -with one single click- into the bash inside the "inner ubuntu".
This setup has been working for years. I can successfully paste there in the terminal with right-click. I can paste in bash, in nano, in Aider, in ClaudeCode... But I can't paste in OpenCode.
Desired workflow
I just want to use OpenWhisper to dictate OpenCode what I want. OpenWhisper transcribes and then "pastes" wherever you are (notepad, google drive, or the bash!) but with OpenCode it can't paste what I dictate.
Activity
github-actions commentedon Jan 8, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
mxro commentedon Jan 21, 2026
I think I encounter a similar issue. Just posting here to double check if it is related.
Environment
Issue
Sometimes when I use Ctrl + V, opencode displays
Pasted ~xx linesand sometimes it just pastes whatever is in the clipboard as input. The latter is very annoying, since it will submit multiple messages, and often open multiple sessions that start doing mysterious things in the background.I haven't found a pattern to this, but these things seem to make the issue less likely:
kundeng commentedon Jan 24, 2026
Environment:
Repro:
opencodeNote: Ctrl+J and Ctrl+V are intercepted by VSCode; Shift+Enter doesn’t insert newline here.
xmontero commentedon Mar 8, 2026
My setup is one step further:
🟩 Host: Laptop with Win11
🟩 WSL: Inside Win11 I run WSL with Ubuntu 20.04
🟩 Docker: Yet the ubuntu in WSL is not the one running the OpenCode. It runs a docker engine. Inside the docker engine I run a container with Ubuntu 24.04
🟩 OpenCode: It runs in a bash, in the inner ubuntu, which is running in a docker container, which is run by the docker engine running in the outer ubuntu, which in turn runs on the WSL.
To CLI-in I have this in windows:
🟧 One small icon with this command:
C:\Windows\System32\bash.exe -c /files/bin/sf7where the script/files/bin/sf7lives in the WSL filesystem. Andsf7does this:docker exec -u ubuntu -it devel-sf7 bash -c 'cd '${PWD}'; exec ${SHELL}'This way, clicking this icon in windows directly enters into a bash.exe (windows) which takes me -with one single click- into the bash inside the "inner ubuntu".
This setup has been working for years. I can successfully paste there in the terminal with right-click. I can paste in bash, in nano, in Aider, in ClaudeCode... But I can't paste in OpenCode.
Desired workflow
I just want to use OpenWhisper to dictate OpenCode what I want. OpenWhisper transcribes and then "pastes" wherever you are (notepad, google drive, or the bash!) but with OpenCode it can't paste what I dictate.
rekram1-node commentedon Jun 23, 2026
Automated: closing question issues.
GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.
If this is a bug or feature request, please open a new issue with the appropriate template.