Windows Reveal in File Explorer has a confirmed error-reporting gap: failures after the PowerShell helper starts are reported as success, so the existing client error toast cannot explain what went wrong.
Confirmed behavior#
launchEditorProcess discards stdout/stderr, and launchAndUnref returns after spawning and unreferencing the helper without observing its exit status. A regression test with helper exit code 1 and stderr returned Success before the fix.
- When those failures are captured, Windows PowerShell's
-EncodedCommand serializes uncaught errors as CLIXML. A real missing-target test reproduced #< CLIXML and XML markup instead of a readable error message.
- The file-link context menu already has an Unable to reveal file toast for reported RPC failures.
Relevant code: apps/server/src/process/externalLauncher.ts, apps/web/src/components/ChatMarkdown.tsx, and packages/contracts/src/editor.ts.
Expected behavior#
Wait for the short-lived launch helper, propagate failed exit status and useful error details, and report missing targets explicitly. Return readable text such as Path does not exist: ..., without PowerShell XML markup. Preserve selection quoting for valid paths, including spaces and apostrophes.
Scope and verification#
This issue tracks failure detection and readable error reporting. The original report that selecting Reveal did nothing was not reproduced during subsequent testing, and its cause remains unknown. Two valid source links with line numbers opened their expected Explorer folders from an isolated web client running the PR build. A valid filename containing spaces and an apostrophe also opened Explorer through the real launcher. Native Electron context-menu interaction was not independently verified.
Fix and focused regression coverage: #11173.
Filed by Codex (GPT-6).