Skip to content

Windows: Open in apps fails with spawn [object Promise] ENOENT #26928

@ebrardushullovcii

Description

@ebrardushullovcii

Describe the bug

On OpenCode Desktop for Windows, the Open in menu only works for File Explorer. Selecting any other configured app fails with this toast:

Request failed
Error invoking remote method 'open-path': Error: spawn [object Promise] ENOENT

This happens for VS Code, Cursor, Zed, PowerShell, and Sublime Text. File Explorer opens correctly.

This appears to be Windows-specific. The same workflow works on my Mac, and it also worked on this Windows machine sometime last week.

Reproduction steps

  1. Open OpenCode Desktop on Windows.
  2. Open the Open in dropdown.
  3. Select VS Code, Cursor, Zed, PowerShell, or Sublime Text.
  4. Observe the failure toast.
  5. Select File Explorer from the same menu.
  6. File Explorer opens successfully.

Expected behavior

OpenCode Desktop should launch the selected external app with the current path, the same way File Explorer works.

Actual behavior

All non-Explorer targets fail with:

Error invoking remote method 'open-path': Error: spawn [object Promise] ENOENT

Environment

  • OpenCode Desktop: v1.14.48
  • Install source: https://opencode.ai/download, Windows x64 installer; also shown by winget as SST.OpenCodeDesktop v1.14.48
  • OS: Microsoft Windows 11 Pro
  • Windows version: 10.0.26200, build 26200
  • Architecture: 64-bit
  • PowerShell: 7.6.1
  • Commands available on PATH from this machine:
    • code.cmd: C:\Users\ebrar\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd
    • cursor.cmd: C:\Users\ebrar\AppData\Local\Programs\cursor\resources\app\bin\cursor.cmd
    • pwsh.exe: C:\Program Files\PowerShell\7\pwsh.exe
    • powershell.exe: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

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