GeezerVison is showing github.com — fix(server): restore Windows File Explorer reveal launches by IndraTensei · Pull Request #19509 · pingdotgg/t3code
Conversation
On native Windows, Reveal in File Explorer can return successfully without opening Explorer. Windows PowerShell launched with detached: true exits with code 0 without executing the encoded command on the affected machine.
This changes only the native Windows reveal launch to detached: false. The helper remains unreferenced and its streams remain ignored. Other editor launches, browser launches, WSL, macOS, and Linux retain their existing launch settings.
Related work
Addresses the helper failure associated with #11780. The production change overlaps the open fix in #19090; this PR is an alternative with a real Windows regression test that exercises the launcher's selected process options. Related implementations are #10387 and #12393. This is not a claim that those reports or fixes are new, and maintainers may prefer to consolidate the work into an existing PR.
Reproduction and validation
Reproduced on Windows 11 Pro, build 26200, Node 24.19.0, while investigating desktop 0.0.46-nightly.20261010.2922:
- The existing detached PowerShell launch exited 0 without writing a marker or running the reveal command. The non-detached launch executed and Explorer selected the requested file, observed through
Shell.Application.
- The regression test captures the options selected by
launchEditor, then runs real Windows PowerShell with a recording stub in place of Explorer. It checks the raw /select argument for a path containing spaces and an apostrophe. The test waits for process completion rather than polling.
- With the old
detached: true launch restored, the regression fails because no recording is produced. With the fix, it passes.
vp test run apps/server/src/process/externalLauncher.test.ts: 24 passed, 29 platform-specific skips.
- Targeted
vp lint and vp fmt --check for the two changed files pass.
vp run --filter t3 typecheck passes.
- Based on upstream
7ac952c630ef8a60d14ca8f6a0c7adce33db4bae; the diff contains only the launcher and its test.
Scope and limits
This is a focused fix for an existing action, with no new feature, setting, wire contract, or persistent state. It introduces no background loop, cache, or additional helper process. The process spawner still honors unref, and the non-detached helper defaults to a hidden Windows console.
Not verified: a rebuilt packaged desktop app, a full native context-menu click test, other operating systems, or performance/memory benchmarks. The Windows helper behavior is reproduced and covered; this does not claim to fix every possible Explorer failure or improve error reporting.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Keep the native Windows PowerShell reveal helper attached while retaining unref. Exercise the production spawn options with a real Windows recorder so silent detached exits fail the regression test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at 089018a
Macroscope's review found this PR approvable — This is a focused Windows File Explorer launch fix: only the existing native reveal path changes its process-detachment setting, while all other launch paths retain their behavior. A targeted Windows smoke test now exercises the production launch options, with no product-default or static-analysis override changes.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
fcd5e862-f6be-4c46-b45a-ee44bd54037f
📥 Commits
-
Reviewing files that changed from the base of the PR and between 7ac952c and 089018a.
📒 Files selected for processing: 2
-
apps/server/src/process/externalLauncher.test.ts
apps/server/src/process/externalLauncher.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
-
Editor launches now support an optional detachment setting. Windows file-manager reveal launches disable detachment. The Windows-only test uses the production launch configuration and checks the recorded selection argument.
Changes: Editor launch behavior
| Layer / File(s) |
Summary |
Configure editor launch detachment apps/server/src/process/externalLauncher.ts |
EditorLaunch adds an optional detached setting. Windows file-manager reveal launches set it to false. Other launches use the specified setting or default to true. |
Exercise Windows reveal launch apps/server/src/process/externalLauncher.test.ts |
The Windows-only Effect test uses launchEditor to obtain the command and options, runs the command, waits for process exit, and checks the recorded /select,"<path>" argument. |
Priority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~12 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge
Merge Risk: ⚪ Minimal · up to 08901
-
The reveal-launch change is ready to merge after normal checks; the test already checks the production target.
Security architecture risk: 🔵 Low · up to 08901
-
The change is limited to native Windows file reveals. It preserves the existing request fields, command construction, and ignored process streams. No introduced security issue was established, but cancellation and server-shutdown behavior of the attached helper remain unverified.
Retained concerns
No architecture-level concerns identified.
Security review details
-
Security Blast Radius
- inferred — The changed outcome is a host-side Explorer reveal reached through the existing shell-open operation on native Windows. The inspected path does not introduce a new executable selector, process-option input, or privilege-elevation step. Successful execution is restored for the intended operation; exact Windows console and handle inheritance remain outside the established evidence.
Trust Boundaries and Controls
- observed — The authorization map assigns shellOpenInEditor to AuthOrchestrationOperateScope. Within the launcher, callers select a predefined editor integration and supply the target path; native Windows detachment is chosen from the host platform and reveal branch, not from caller-supplied process options. The full session-authorization enforcement chain was not inspected.
Resilience and Maintainability Implications
- observed — The source-level failure protocol remains command checking followed by scoped spawn and unref, with spawn failures mapped to launcher errors. Production does not wait for Explorer completion. The available regression uses a mock service handle and a separate direct Node process, so it does not establish cleanup or ownership invariants under interruption, concurrent reveals, or parent shutdown.
Pre-merge checks: 4
-
Passed checks: 4 passed
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly identifies the server-side fix and the affected Windows File Explorer reveal behavior. |
| Description check |
 |
The description explains the problem, change, scope, related issue, reproduction details, focused verification, test results, and unverified cases. It does not use the template headings exactly, but i… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note Grok responding on behalf of Julius.
Superseded by merged #19656, which landed the Windows PowerShell detached: false fix for Reveal in File Explorer (and related browser launches) and closed #11780. Closing this PR as superseded — thanks for the work.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:S
10-29 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|