Skip to content

Bug: "spawn [object promise] ENOENT" when opening external programs (VSCode, PowerShell) #26657

@tianpoACE

Description

@tianpoACE

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:

  1. Open opencode desktop
  2. Try to open VSCode or PowerShell from the interface
  3. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions