Bug: "spawn [object promise] ENOENT" when opening external programs (VSCode, PowerShell)
Description:
In the opencode desktop app, actions to open external programs (VSCode, PowerShell) fail with:
error invoking remote method 'open-path': error: spawn [object promise] ENOENT
Environment:
- OS: Windows 10/11 (win32)
- OpenCode version: 1.14.x (desktop app at @opencode-aidesktop)
- Install method: Electron desktop
Steps to reproduce:
- Open opencode desktop
- Try to open VSCode or PowerShell from the interface
- Error dialog appears with the above message
Verification:
- Both
code and powershell are in PATH and work from terminal directly
code is at: E:\Microsoft VS Code\bin\code.cmd
- CLI logs (
~/.local/share/opencode/log/) do not contain this error
- The error comes from the Electron renderer/main process
Likely cause:
spawn [object promise] ENOENT suggests a Promise object is being passed as the executable path to child_process.spawn() instead of a resolved string path.
Bug: "spawn [object promise] ENOENT" when opening external programs (VSCode, PowerShell)
Description:
In the opencode desktop app, actions to open external programs (VSCode, PowerShell) fail with:
Environment:
Steps to reproduce:
Verification:
codeandpowershellare in PATH and work from terminal directlycodeis at:E:\Microsoft VS Code\bin\code.cmd~/.local/share/opencode/log/) do not contain this errorLikely cause:
spawn [object promise] ENOENTsuggests a Promise object is being passed as the executable path tochild_process.spawn()instead of a resolved string path.