shell mode (!) is broken on Windows Powershell #3073

Closed
opened 2026-02-16 17:38:29 -05:00 by yindo · 2 comments
Owner

Originally created by @nikitakot on GitHub (Nov 23, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Shell mode (!) on Windows Powershell launches wsl.exe and then only prints the command.

OpenCode version

v1.0.106

Steps to reproduce

  1. Enter ! Shell mode
  2. Run any command (for ex. ls or dir)
  3. Instead of printing the folder structure it only prints the command.

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @nikitakot on GitHub (Nov 23, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Shell mode (`!`) on Windows Powershell launches wsl.exe and then only prints the command. ### OpenCode version v1.0.106 ### Steps to reproduce 1. Enter `!` Shell mode 2. Run any command (for ex. `ls` or `dir`) 3. Instead of printing the folder structure it only prints the command. ### Screenshot and/or share link <img width="1447" height="913" alt="Image" src="https://github.com/user-attachments/assets/96c17a5e-7328-46fc-a69f-ac6d4fed87a0" /> ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsbug labels 2026-02-16 17:38:29 -05:00
yindo closed this issue 2026-02-16 17:38:29 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 23, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3763: [Windows] interactive call breaking tui - Similar TUI breaking issue with Windows interactive calls
  • #4599: Bash tool executes bash commands with cmd.exe - Related bash/shell execution issues on Windows
  • #4392: Blockers: Switching from Claude Code to OpenCode on Windows - Tracks multiple Windows bash/shell issues

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 23, 2025): This issue might be a duplicate of existing issues. Please check: - #3763: [Windows] interactive call breaking tui - Similar TUI breaking issue with Windows interactive calls - #4599: Bash tool executes bash commands with cmd.exe - Related bash/shell execution issues on Windows - #4392: Blockers: Switching from Claude Code to OpenCode on Windows - Tracks multiple Windows bash/shell issues Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 12, 2025):

should be fixed in next release

@rekram1-node commented on GitHub (Dec 12, 2025): should be fixed in next release
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3073