Add Windsurf to "Open in" menu on Windows (win32Detect not defined)
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:
windsurfis installed and available in PATHwindsurf --versionworks correctly- The app already includes
windsurf.pnginwebview/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:
``jswindsurf
// Current (broken on Windows)
x8 = A3({
id: ,Windsurf
label: ,apps/windsurf.png
icon: ,/Applications/Windsurf.app/Contents/Resources/app/bin/windsurf
darwinDetect: () => C3([])``
});
Compare with Cursor and VS Code, which both include win32Detect:
``jscursor
// Cursor — works on Windows
T6 = A3({
id: ,Cursor
label: ,apps/cursor.png
icon: ,``
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:
``jswindsurf
x8 = A3({
id: ,Windsurf
label: ,apps/windsurf.png
icon: ,/Applications/Windsurf.app/Contents/Resources/app/bin/windsurf
darwinDetect: () => C3([]),windsurf
win32Detect: () => t6({
pathCommand: B3(),Windsurf.exe
executableName: ,Windsurf
installDirName: ``
})
});
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?
- Install Windsurf on Windows (ensure
windsurfis in PATH) - Open Codex Desktop
- Open a task/conversation with a workspace
- Click the "Open in" menu
- 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_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗