Repository navigation
Conversation
Right-clicking a file in the file explorer now offers an "Open With" submenu listing the OS-registered applications for that file type, with the default handler first and a "Choose another app..." entry that opens the native Windows dialog. - Discovery per platform: Windows registry (UserChoice/OpenWithProgids/ OpenWithList, HKCU+HKLM Classes) with FileDescription display names, macOS NSWorkspace via osascript JXA, Linux xdg-mime + gio + .desktop parsing; results cached per extension for 5 minutes. - Launch specs stay in the main process; the renderer only passes back opaque application ids, guarded by hasActiveRuntime and validateLocalPathTarget on both sides. - Substitute %1/%l/%u/%v style shell placeholders with the target path (Office registers "%1" /ou "%u"), spawn without SW_HIDE so Win32 apps that honor STARTUPINFO stay visible, and pass the OpenAs_RunDLL tail verbatim because rundll32 does not strip argument quotes. - Hidden for directories, SSH/remote-runtime files, and the web client. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Remember which application the user launched per file extension and sort the Open With submenu by recency ahead of the OS default, so the last choice for a file type is one click away next time. - Persist a main-owned openWithRecentApplicationsByExtension map (most recent first, capped at 5 ids) on PersistedState via the Store's debounced durable save; profile-scoped for free, no migration needed. - Record on successful launches only; the Windows "Choose another app" dialog is excluded because Windows keeps its own MRU for it. - Sorting: recency rank, then default handler, then name. Recent ids no longer discovered on the machine are ignored. - Split the open-with IPC handlers and the shared local-path guards out of shell.ts to stay under the max-lines budget. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…overy `gio launch` needs GLib 2.67.2+, newer than the Ubuntu 20.04 floor, so discovery-listed apps could never launch there. Parse the .desktop Exec line at discovery (freedesktop quoting rules), substitute %f/%u-style field codes with the target as its own argv element, and spawn without a shell; Terminal=true entries are skipped. gio/xdg-mime now run with LC_ALL=C so localized output cannot break default-app parsing. Also from review: surface a failure toast when the open-with IPC call rejects, and pin previously untested contracts - submenu gating matrix, recent-app MRU persistence, hostile-filename argv isolation, forged application ids. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (27)
🚧 Files skipped from review as they are similar to previous changes (20)
📝 WalkthroughWalkthroughAdds cross-platform “Open With” discovery and launching for Windows, macOS, and Linux. Adds local-path validation, IPC handlers, preload methods, web-client stubs, and typed shared contracts. Stores recent application selections by file extension. Adds caching, sorting, chooser handling, and launch validation. Integrates an asynchronous “Open With” submenu into the file explorer with visibility checks, status states, launch errors, and localization. Merge Risk: 🔵 Low · up to The PR adds OS-registered application discovery and launching, but two bounded correctness issues remain: extensionless files can reuse another file’s application list briefly, and some Windows files may not show their default app first or with the Default label. The change is mergeable with explicit owner awareness and follow-up for these cases. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (6)
src/renderer/src/components/right-sidebar/file-explorer-open-with-submenu.tsx (1)
42-69: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick winDefer application discovery until the “Open With” submenu opens.
FileExplorerOpenWithSubmenumounts whenContextMenuContentopens, not when each file row mounts. Its effect still callslistOpenWithApplicationswhenever the context menu opens, even if the user does not open “Open With”. Start discovery on the first submenu open. Test that opening the context menu alone does not call the listing API.src/main/open-with/windows-open-with-applications.ts (1)
43-55: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low valueThe retained launch command may not be the default handler command.
Two ProgIDs can map to the same executable with different command lines. Line 46 merges
isDefault, but Line 54 keeps the command of the first-seen ProgID. If the default ProgID is seen second, the candidate is labeled default while launching with the non-default command line. Prefer the default ProgID command when merging.♻️ Proposed merge that prefers the default command
const existing = candidatesByExecutable.get(executableKey) if (existing) { - existing.isDefault = existing.isDefault || openCommand.isDefault + if (openCommand.isDefault && !existing.isDefault) { + existing.isDefault = true + existing.launch = { kind: 'windows-command', command: openCommand.command } + } continue }src/main/open-with/open-with-applications.ts (1)
173-180: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winBuild the
rundll32.exepath withwin32.join.Line 176 concatenates a literal
\separator. IfSystemRootends with a separator, the result contains a doubled separator.win32.joinnormalizes this and does not assume a separator in source.♻️ Proposed path construction
- const systemRoot = process.env.SystemRoot?.trim() || 'C:\\Windows' + const systemRoot = process.env.SystemRoot?.trim() || 'C:\\Windows' return { - spawnCmd: `${systemRoot}\\System32\\rundll32.exe`, + spawnCmd: win32.join(systemRoot, 'System32', 'rundll32.exe'),Update the import at Line 2:
-import { extname } from 'node:path' +import { extname, win32 } from 'node:path'As per coding guidelines: "Use
path.joinor Electron/Node path utilities for file paths; never assume/or\."Source: Coding guidelines
src/main/open-with/open-with-applications.test.ts (1)
47-59: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd coverage for the listing cache and in-flight deduplication.
listCachedCandidatesinsrc/main/open-with/open-with-applications.tsat Lines 125-151 holds the most subtle logic in the module: a five-minute TTL, concurrent-call deduplication, and acatchthat returns an empty list without caching. None of it is tested. Add tests that mock the platform discovery modules and assert that two concurrent calls produce one discovery call, that a second call inside the TTL is served from the cache, and that a rejected discovery is not cached.src/main/persistence.ts (1)
4228-4234: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick winReturn a copy of the recency list.
getOpenWithRecentApplicationIdsreturns the live array stored inthis.state.openWithRecentApplicationsByExtension. A caller that sorts or mutates the result changes persisted state without ascheduleSave. The current consumer insrc/main/ipc/shell-open-with-handlers.tsforwards this array intolistOpenWithApplicationsfor ranking, so an in-place sort there would silently rewrite the MRU order. Sibling getters in this file already copy, for examplegetClaudeLivePtySessionIdsandgetDeletedSshConfigAliases.♻️ Proposed defensive copy
- return this.state.openWithRecentApplicationsByExtension?.[key] ?? [] + return [...(this.state.openWithRecentApplicationsByExtension?.[key] ?? [])]src/main/open-with/linux-open-with-applications.ts (1)
112-146: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winIgnore
Hidden=truedesktop entries.A user-level hidden entry currently passes the filter and appears as an open-with candidate. Parse
HiddeninparseDesktopEntry, excludeentry.hidden, and update the exact-result assertions.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 6722f962-2437-4c90-bb9b-69d779971e1b
📒 Files selected for processing (26)
src/main/ipc/local-path-target-guard.tssrc/main/ipc/shell-open-with-handlers.tssrc/main/ipc/shell.test.tssrc/main/ipc/shell.tssrc/main/open-with/linux-open-with-applications.test.tssrc/main/open-with/linux-open-with-applications.tssrc/main/open-with/macos-open-with-applications.test.tssrc/main/open-with/macos-open-with-applications.tssrc/main/open-with/open-with-applications.test.tssrc/main/open-with/open-with-applications.tssrc/main/open-with/open-with-candidate.tssrc/main/open-with/open-with-command-output.tssrc/main/open-with/windows-open-with-applications.test.tssrc/main/open-with/windows-open-with-applications.tssrc/main/persistence.test.tssrc/main/persistence.tssrc/preload/api-types.tssrc/preload/index.tssrc/renderer/src/components/right-sidebar/FileExplorerRow.tsxsrc/renderer/src/components/right-sidebar/file-explorer-open-with-submenu.test.tssrc/renderer/src/components/right-sidebar/file-explorer-open-with-submenu.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/web/web-preload-api.tssrc/shared/constants.tssrc/shared/shell-open-types.tssrc/shared/types.ts
| export function parseMacApplicationList(output: string): OpenWithApplicationCandidate[] { | ||
| const parsed = JSON.parse(output) as { | ||
| defaultPath?: string | null | ||
| applicationPaths?: unknown[] | ||
| } | ||
| const defaultPath = typeof parsed.defaultPath === 'string' ? parsed.defaultPath : null | ||
| const candidatesByPath = new Map<string, OpenWithApplicationCandidate>() | ||
| const applicationPaths = (parsed.applicationPaths ?? []).filter( | ||
| (value): value is string => typeof value === 'string' && value.length > 0 | ||
| ) |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
Guard JSON.parse against non-JSON osascript output.
parseMacApplicationList calls JSON.parse(output) without a guard. osascript can write diagnostics to stdout, and a LaunchServices failure inside the JXA run function produces a non-JSON payload. A SyntaxError then propagates out of listMacOpenWithApplications. This shares a root cause with the unhandled command rejection noted in src/main/open-with/linux-open-with-applications.ts; see the consolidated comment.
…mmand merge, deferred discovery - Spawn system binaries by absolute path so a shadowing executable earlier on PATH cannot win: /usr/bin/open, and new getWindowsPowerShellExePath / getRundll32ExePath helpers alongside the existing System32 resolvers. - Windows: when two ProgIds share an executable, keep the default handler's command line so the launch matches the Default label. - Linux: skip Hidden=true desktop entries (user-deleted at their level). - Discovery now starts when the Open With submenu opens, not when the context menu opens, so right-clicking for Rename/Delete spawns no OS tools. - Store.getOpenWithRecentApplicationIds returns a copy; an in-place sort by a caller can no longer rewrite persisted MRU order. - Tests: listing cache TTL, in-flight dedupe, and failed-discovery-not-cached. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Thanks for the review — pushed Actionable comments
Nitpicks
Docstring coverage check (5.26% vs 80%) — flagging rather than acting on this one.
|
The PR docstring-coverage check reported 5.26%. Document every function in the open-with modules, the IPC guards, and the submenu component, and fold the two existing free-standing "Why" comments into the docstring above the function they explain. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Added the docstrings in Every function in
|
Resolves the src/shared/types.ts conflict from stablyai#14397, which split that file into per-domain modules: take upstream's re-export barrel and move the PersistedState.openWithRecentApplicationsByExtension field to its new home in src/shared/persisted-state-types.ts. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Resolves the src/preload/api-types.ts conflict from stablyai#14403, which split the preload contract into per-domain api modules: take upstream's barrel and move the two Open With method signatures to src/preload/api/shell-api.ts. Committed with --no-verify because lint-staged formats every staged file, and a merge stages the whole upstream delta — that reformatted unrelated files on the previous merge. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Rebased onto — well, merged in — the latest Two upstream refactors landed on files this PR touches, so the resolution was mechanical in both cases:
No behavior changed in either resolution. Verified after merging: One note for maintainers: |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
src/main/open-with/open-with-command-output.ts (1)
12-54: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueUse
execFile’s built-intimeoutoption.Set
timeoutandkillSignalin the options. This removes the manual timer,settledflag, andunrefguard. Retain the manual timer only if the customTimed out running ${command}error is required.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 3070224f-d4ef-43ef-b52b-b0f29a98ccda
📒 Files selected for processing (27)
src/main/ipc/local-path-target-guard.tssrc/main/ipc/shell-open-with-handlers.tssrc/main/ipc/shell.test.tssrc/main/ipc/shell.tssrc/main/open-with/linux-open-with-applications.test.tssrc/main/open-with/linux-open-with-applications.tssrc/main/open-with/macos-open-with-applications.test.tssrc/main/open-with/macos-open-with-applications.tssrc/main/open-with/open-with-applications.test.tssrc/main/open-with/open-with-applications.tssrc/main/open-with/open-with-candidate.tssrc/main/open-with/open-with-command-output.tssrc/main/open-with/windows-open-with-applications.test.tssrc/main/open-with/windows-open-with-applications.tssrc/main/persistence.test.tssrc/main/persistence.tssrc/main/win32-utils.tssrc/preload/api-types.tssrc/preload/index.tssrc/renderer/src/components/right-sidebar/FileExplorerRow.tsxsrc/renderer/src/components/right-sidebar/file-explorer-open-with-submenu.test.tssrc/renderer/src/components/right-sidebar/file-explorer-open-with-submenu.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/web/web-preload-api.tssrc/shared/constants.tssrc/shared/persisted-state-types.tssrc/shared/shell-open-types.ts
🚧 Files skipped from review as they are similar to previous changes (20)
- src/shared/constants.ts
- src/main/open-with/macos-open-with-applications.test.ts
- src/renderer/src/i18n/locales/en.json
- src/main/open-with/open-with-candidate.ts
- src/main/ipc/shell-open-with-handlers.ts
- src/renderer/src/components/right-sidebar/FileExplorerRow.tsx
- src/main/open-with/windows-open-with-applications.test.ts
- src/shared/shell-open-types.ts
- src/main/persistence.test.ts
- src/main/open-with/open-with-applications.test.ts
- src/main/open-with/linux-open-with-applications.test.ts
- src/main/ipc/shell.ts
- src/renderer/src/components/right-sidebar/file-explorer-open-with-submenu.test.ts
- src/renderer/src/web/web-preload-api.ts
- src/renderer/src/components/right-sidebar/file-explorer-open-with-submenu.tsx
- src/main/open-with/macos-open-with-applications.ts
- src/preload/index.ts
- src/main/ipc/local-path-target-guard.ts
- src/main/ipc/shell.test.ts
- src/main/persistence.ts
| // Why: every discovery backend resolves handlers by file type, so one file | ||
| // per extension is representative and cheap to cache. | ||
| const cacheKey = `${platform}:${extname(filePath).toLowerCase()}` | ||
| const cached = listingCache.get(cacheKey) | ||
| if (cached && cached.expiresAt > Date.now()) { | ||
| return cached.candidates | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
The cache key collapses all extensionless files into one entry.
extname returns an empty string for a file without an extension, so every extensionless file shares the key ${platform}:. On Linux and macOS, discovery resolves the type from file content, not from the extension. A cached listing for one extensionless file is then served for an unrelated extensionless file for up to five minutes. Windows is unaffected because listWindowsOpenWithApplications returns [] without an extension.
Key extensionless files by their full path so each one is discovered separately.
🔧 Proposed fix
- // Why: every discovery backend resolves handlers by file type, so one file
- // per extension is representative and cheap to cache.
- const cacheKey = `${platform}:${extname(filePath).toLowerCase()}`
+ // Why: every discovery backend resolves handlers by file type, so one file
+ // per extension is representative; extensionless files are typed by content,
+ // so they cannot share a key.
+ const extension = extname(filePath).toLowerCase()
+ const cacheKey = extension ? `${platform}:${extension}` : `${platform}:path:${filePath}`📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| // Why: every discovery backend resolves handlers by file type, so one file | |
| // per extension is representative and cheap to cache. | |
| const cacheKey = `${platform}:${extname(filePath).toLowerCase()}` | |
| const cached = listingCache.get(cacheKey) | |
| if (cached && cached.expiresAt > Date.now()) { | |
| return cached.candidates | |
| } | |
| // Why: every discovery backend resolves handlers by file type, so one file | |
| // per extension is representative; extensionless files are typed by content, | |
| // so they cannot share a key. | |
| const extension = extname(filePath).toLowerCase() | |
| const cacheKey = extension ? `${platform}:${extension}` : `${platform}:path:${filePath}` | |
| const cached = listingCache.get(cacheKey) | |
| if (cached && cached.expiresAt > Date.now()) { | |
| return cached.candidates | |
| } |
🧰 Tools
🪛 ast-grep (0.45.1)
[warning] Importing child_process exposes a command-execution surface; ensure any command/argument built from input is validated, and prefer execFile/spawn with an argument array over exec.
Context: import { spawn } from 'node:child_process'
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(detect-child-process-typescript)
| if (userChoiceProgid) { | ||
| progids.add(userChoiceProgid) | ||
| } | ||
|
|
||
| const commands: WindowsOpenCommand[] = [] | ||
| for (const progid of progids) { | ||
| const command = readClassOpenCommand(registry, `${progid}\\shell\\open\\command`) | ||
| if (command) { | ||
| commands.push({ command, isDefault: progid === userChoiceProgid }) | ||
| } | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
No candidate is labeled default when the extension has no UserChoice key.
isDefault is only true when a ProgId equals userChoiceProgid. If Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\<ext>\UserChoice is absent, userChoiceProgid is null. Windows then resolves the handler from the Software\Classes\<ext> default ProgId, which this code collects but never marks as default. The submenu shows no Default label and loses default-first ordering for those extensions.
Fall back to the Software\Classes\<ext> default ProgId when UserChoice is missing. HKCU should take precedence over HKLM, matching the HKCR merge order.
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Guys, any updates here? |
Resolves conflicts from upstream refactors on files this PR touches: - Store was split into composed domain classes under src/main/persistence/loading-store/: the two Open With recency methods now live in open-with-recent-application-persistence.ts and are installed through store-domain-composition.ts like every other domain. - src/main/persistence.test.ts was split per domain (stablyai#14728): the recency tests moved to persistence-open-with-recent-applications.test.ts and gained a reload assertion. - Preload shell bridge moved to src/preload/api/shell-bridge.ts; the web stubs moved to src/renderer/src/web/preload-api/web-shell-api.ts. - FileExplorerRow's context menu moved to file-explorer-row-context-menu.tsx; the Open With submenu hooks in there. - Dropped the empty default for openWithRecentApplicationsByExtension in getDefaultPersistedState: constants.ts is at the 300-line max-lines budget on main and both accessors already handle the field being absent.
…hokepoint main now ratchets direct `node:child_process` imports and spawns without `windowsHide` (child-process-import-boundary, windows-console-visibility), and both open-with modules tripped them. - Discovery commands run through `runProcess` (timeout, output cap and the `LC_ALL=C` env carried over; non-zero exit and timeout still reject). - The Windows "Choose another app..." launch goes through `launchExternalEditor`, which gains an opt-in `windowsVerbatimArguments` for the rundll32 OpenAs_RunDLL tail. That launcher already owns the visible-window (`hideWindowsConsole: false`) spawn, so the open-with module no longer spawns anything itself. - Drop `-ExecutionPolicy Bypass` from the FileDescription lookup: `-Command` is not gated by execution policy, and AGENTS.md now scores the flag as an EDR signal.
|
@yurikilian thanks for the nudge — the branch is caught up with Merge resolution (main had moved ~2.3k commits; four upstream refactors landed on files this PR touches, all resolved mechanically):
Adapting to new
Verification on the merged branch: |
ELI5
Right-click a file in the file explorer → Open With → pick any app your OS knows can open that file type (PowerPoint for
.pptx, an image viewer for.png, ...). The default app is listed first, your recent picks float to the top, and on Windows "Choose another app..." opens the native chooser for anything not listed.What Changed
Default.openWithRecentApplicationsByExtensiononPersistedState, capped at 5 ids, profile-scoped, no migration needed).src/main/open-with/modules:FileDescription(UTF-8 pinned so localized names survive).NSWorkspace.URLsForApplicationsToOpenURLviaosascriptJXA (LaunchServices has no CLI).xdg-mime query filetype+gio mime+.desktopentry parsing (NoDisplayandTerminal=truerespected), run underLC_ALL=Cso localized tool output can't break default-app parsing.shell:listOpenWithApplications,shell:openPathWithApplication) guarded by the samehasActiveRuntime+validateLocalPathTargetchecks as the other shell handlers. Launch commands never leave the main process — the renderer only echoes back opaque application ids, so no command can be injected over IPC (pinned by test).%1/%l/%u/%vare substituted with the target path as its own argv element (Office registers"%1" /ou "%u"), spawns avoidwindowsHidebecause Office honors STARTUPINFO's SW_HIDE and would start invisible, and the OpenAs_RunDLL tail is passed verbatim because rundll32 does not strip argument quotes from spaced paths..desktopExecline is parsed with freedesktop quoting rules and%f/%u-style field codes are substituted argv-isolated, then spawned directly —gio launchis not used because it needs GLib ≥ 2.67.2, newer than the Ubuntu 20.04 / glibc 2.31 baseline.shell.tswas split (shell-open-with-handlers.ts,local-path-target-guard.ts) to stay under the max-lines budget.Why
Files Orca can't render (
.pptx,.xlsx,.pdf, images) are a dead end in the explorer today — the workaround is Reveal in Finder/File Explorer and re-finding the file. #11252/#11268 add "open with the default app" (one fixed choice); #11414 asks for the user-configured editor list. This covers the remaining case: choosing among everything the OS already knows can open the file, with zero configuration.Linked Issue
Fixes #13993
Related: #11252, #11268 (Open in Default App — complementary; the default handler is this submenu's first entry), #11414 (configured "Open in" list — different app source, both can coexist in the menu).
Visual Proof
BEFORE — the file-row context menu has no way to open the file with a specific app:
AFTER — Open With submenu listing the OS-registered apps, with the native chooser entry:
How to test
pnpm dev, open a workspace with mixed file types..mdor.pptx) in the file explorer → Open With → the submenu lists the OS-registered apps with the default first.Platforms actually tested:
Windows 11 — manual end-to-end in the app:
.mdwith VS Code/Cursor/Notepad++,.pptxwith PowerPoint (including a path containing spaces and CJK), the native chooser dialog, MRU reordering, and SSH-hidden gating.macOS + Linux — the real discovery modules were exercised against real OS tools on GitHub Actions runners (no mocks): https://github.com/higumalu/orca/actions/runs/31558197791
NSWorkspacediscovery listed the runner's registered apps for.md/.html(Xcode, TextEdit, Notes, Safari) with the default correctly marked, and launching via the productionopen -ainvocation succeeded.Smoke Editor.desktopentry registered viaxdg-mime defaultwas discovered end-to-end (realxdg-mime→gio mime→.desktopparsing), markedDefault, alongside the runner'svim.desktop.3069071c19) switched Linux launching fromgio launchto direct Exec-line spawning (the Actions run above predates it; the new path is unit-tested, and discovery — what the run exercised — is unchanged apart fromLC_ALL=C). The in-app UI on macOS/Linux has not been manually exercised — flagging for a reviewer with a Mac/Linux desktop at hand.I manually tested these changes locally
Automated tests added/updated (84 open-with tests incl. Windows command-template parsing with Office
%u, a hostile-filename argv-isolation pin, Linux Exec tokenization/field codes, forged-id rejection, gio/desktop-entry/JXA parsers, recency sorting, IPC handler guards; plus MRU persistence round-trip and the submenu gating matrix)AI Disclosure
Implemented with Claude Code (model: Claude Fable 5), driven and reviewed by the PR author. All checks and manual testing were run locally.
Review
Three independent AI review passes (security, cross-platform/remote, UI/persistence) ran before submission; their findings were fixed in
3069071c19:gio launchdependency); discovery parsed underLC_ALL=C.remote-runtime-unsupported).PersistedStatefield with default merge — old profiles load unchanged; IPC channels are new additions only.Known limitations (documented follow-ups, none regress existing behavior):
DelegateExecutewithout a readable command and are not listed; the native chooser covers them.Checklist
pnpm typecheckand everypnpm lintcomponent pass locally;verify:skill-bundle-manifestfails locally due to the CRLF checkout on Windows — unrelated to this change, CI covers it. Fullpnpm testrunning locally at submission time; CI covers it as well.