Add Windsurf to "Open in" menu on Windows (win32Detect not defined)

Resolved 💬 2 comments Opened Mar 6, 2026 by krad0x Closed Apr 11, 2026

What version of the Codex App are you using (From “About Codex” dialog)?

26.304.1528

What subscription do you have?

Pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Windsurf does not appear in the "Open in" menu on Windows, even though:

  • windsurf is installed and available in PATH
  • windsurf --version works correctly
  • The app already includes windsurf.png in webview/apps/
  • Windsurf does appear on macOS

### Root cause

In the bundled app.asar.vite/build/main.js, the Windsurf editor definition only has darwinDetect
but is missing win32Detect:

``js
// Current (broken on Windows)
x8 = A3({
id:
windsurf,
label:
Windsurf,
icon:
apps/windsurf.png,
darwinDetect: () => C3([
/Applications/Windsurf.app/Contents/Resources/app/bin/windsurf])
});
``

Compare with Cursor and VS Code, which both include win32Detect:

``js
// Cursor — works on Windows
T6 = A3({
id:
cursor,
label:
Cursor,
icon:
apps/cursor.png,
darwinDetect: () => E6()?.electronBin ?? null,
win32Detect: D6, // ← this is what Windsurf is missing
...
});
``

### Suggested fix

Add win32Detect to the Windsurf definition, following the same pattern as VS Code (_8) which uses t6:

``js
x8 = A3({
id:
windsurf,
label:
Windsurf,
icon:
apps/windsurf.png,
darwinDetect: () => C3([
/Applications/Windsurf.app/Contents/Resources/app/bin/windsurf]),
win32Detect: () => t6({
pathCommand: B3(
windsurf),
executableName:
Windsurf.exe,
installDirName:
Windsurf
})
});
``

This correctly detects Windsurf via PATH (windsurf.cmd) and resolves to Windsurf.exe in the installation
directory.

### Environment

  • OS: Windows 11 Pro for Workstations (10.0.26200)
  • Codex Desktop: v26.304.1528.0 (Microsoft Store)
  • Package: OpenAI.Codex_26.304.1528.0_x64__2p2nqsd0c76g0
  • Windsurf CLI: C:\Users\Krad0x\AppData\Local\Programs\Windsurf\bin\windsurf.cmd

What steps can reproduce the bug?

  1. Install Windsurf on Windows (ensure windsurf is in PATH)
  2. Open Codex Desktop
  3. Open a task/conversation with a workspace
  4. Click the "Open in" menu
  5. Windsurf is not listed — only Cursor, Terminal, Git Bash, WSL, etc.

### Expected behavior

Windsurf should appear in the "Open in" menu on Windows, just like it does on macOS.

### Additional context

Related: #10428 (custom editors in "Open In" menu)

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗