WSL CLI install not working outside of VScode terminals #9212

Open
opened 2026-02-16 18:11:55 -05:00 by yindo · 1 comment
Owner

Originally created by @glw on GitHub (Feb 12, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

After running the instructions here: https://opencode.ai/docs/windows-wsl
If opencode is open in vscode it will not allow you to run it again in a typical terminal (outside of vscode).

After running opencode in vscode. Open a stand-alone terminal.

Regular Bash Terminal
$ opencode
opencode: command not found

Is this the intended behavior?

Plugins

none

OpenCode version

1.1.63

Steps to reproduce

  1. curl -fsSL https://opencode.ai/install | bash
  2. install opencode extension in vscode
  3. run opencode in vscode
  4. open separate terminal, run command "opencode"
  5. opencode: command not found.
  6. Close/end sessions in vscode.
  7. rerun separate terminal command. opencode now works.

Screenshot and/or share link

Image

Operating System

Windows 10.0.26xxxx - WSL2 2.6.3.0

Terminal

Windows Terminal 1.23.13503.0

Originally created by @glw on GitHub (Feb 12, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description After running the instructions here: https://opencode.ai/docs/windows-wsl If opencode is open in vscode it will not allow you to run it again in a typical terminal (outside of vscode). After running opencode in vscode. Open a stand-alone terminal. Regular Bash Terminal $ opencode opencode: command not found Is this the intended behavior? ### Plugins none ### OpenCode version 1.1.63 ### Steps to reproduce 1. curl -fsSL https://opencode.ai/install | bash 2. install opencode extension in vscode 3. run opencode in vscode 4. open separate terminal, run command "opencode" 5. opencode: command not found. 6. Close/end sessions in vscode. 7. rerun separate terminal command. opencode now works. ### Screenshot and/or share link <img width="669" height="378" alt="Image" src="https://github.com/user-attachments/assets/11820004-5a8e-430a-96ea-72c0e1183e09" /> ### Operating System Windows 10.0.26xxxx - WSL2 2.6.3.0 ### Terminal Windows Terminal 1.23.13503.0
yindo added the windowsbug labels 2026-02-16 18:11:55 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 12, 2026):

This issue might be a duplicate of #13212: "After updating CLI/TUI version from 1.1.34 to 1.1.59, opencode runs only through WSL compared to running normally on Windows".

While that issue was closed, your specific scenario (opencode not working in standalone terminals after running it in VSCode) might be a distinct manifestation or continuation of the same underlying issue. The maintainers may want to review if this is indeed a separate case or if the previous issue resolution didn't fully address this interaction pattern.

@github-actions[bot] commented on GitHub (Feb 12, 2026): This issue might be a duplicate of #13212: "After updating CLI/TUI version from 1.1.34 to 1.1.59, opencode runs only through WSL compared to running normally on Windows". While that issue was closed, your specific scenario (opencode not working in standalone terminals after running it in VSCode) might be a distinct manifestation or continuation of the same underlying issue. The maintainers may want to review if this is indeed a separate case or if the previous issue resolution didn't fully address this interaction pattern.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9212