GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): Reveal in File Explorer opens a window on Windows again by trevoedwards · Pull Request #19090 · pingdotgg/t3code

Conversation

@trevoedwards

@trevoedwards trevoedwards commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Problem

On Windows, right-click a file or folder → "Reveal in File Explorer" does nothing. No Explorer window opens and no error is shown. Related open PRs (#12393, #10387, #18549) touch this area but none states a verified root cause.

Change

The server runs the reveal through powershell.exe -EncodedCommand … Start-Process explorer.exe /select,"<path>", and launchEditorProcess spawns every launch with detached: true. On Windows that is DETACHED_PROCESS, so PowerShell has no console. In that state Windows PowerShell exits 0 without running the command. Explorer never starts, and because the exit code is 0 nothing is reported.

EditorLaunch gets an optional detached field (default true, so every other launch is unchanged). The native Windows reveal sets it to false. The PowerShell process is short-lived and Explorer outlives it, so the window is not tied to the server.

Scope and approval

A small fix for an obvious bug: one optional field and one override on one launch. Editor launches, the WSL reveal path, macOS and Linux are untouched. No product behavior changes beyond the reveal working as intended.

Verification

Reproduced on Windows 11 by running the exact reveal PowerShell command from Node with the same spawn options against a real directory, counting open Explorer windows through Shell.Application:

Spawn Windows before After
detached: true (current) 3 3, nothing opened
detached: false 3 4
detached: false (again) 4 5

vp test run apps/server/src/process/externalLauncher.test.ts passes (51 passed, 1 skipped), including a new assertion in the existing Windows reveal test that the launch is not detached. Lint and the server typecheck are clean.

Not checked: the change inside a packaged desktop build, and macOS/Linux (code paths unchanged).

Model and harness: Claude Sonnet 5.5 via Claude Code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

AdEx-Partners-DE reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@trevoedwards @claude
fix(server): Reveal in File Explorer opens a window on Windows again
64a8b5a
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Oct 13, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 13, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 64a8b5a

Macroscope's review found this PR approvable — This is a narrowly scoped Windows bug fix that changes only the PowerShell process detachment behavior needed for File Explorer to open, while preserving defaults for all other launches. The focused test covers the new Windows behavior, and no broader product, schema, infrastructure, or static-analysis changes are involved.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9e354c77-3ed6-48c6-9d25-46a3782cf210
📥 Commits

Reviewing files that changed from the base of the PR and between 3c06fc6 and 88a1de8.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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: 740db423-171a-4a91-a958-dd6f96c990ed
📥 Commits

Reviewing files that changed from the base of the PR and between 42160f2 and 64a8b5a.

📒 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

The launch options now support an optional detached setting. Windows file-manager reveals set it to false, and process spawning uses that value when provided. Other launches continue to default to true.

Changes: Windows File-Manager Reveal

Layer / File(s) Summary
Configure process detachment
apps/server/src/process/externalLauncher.ts, apps/server/src/process/externalLauncher.test.ts
EditorLaunch adds an optional detached setting. Windows file-manager reveals set it to false, and process spawning uses the supplied value or defaults to true. The test asserts that the PowerShell process is not detached.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: ⚪ Minimal · up to 64a8b

The change targets the reported Windows reveal issue while preserving other launches’ default behavior. No concrete merge-blocking risk is established by the supplied evidence.

Security architecture risk: 🔵 Low · up to 64a8b

The change is narrowly scoped to Windows reveals. No new external request options or permission changes were identified. Process cleanup and shutdown behavior in the packaged Windows application remain unverified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The affected execution scope remains the Windows host handling the existing reveal request. The change is intended to make the existing PowerShell-to-Explorer operation execute successfully; no new caller, credential, elevation request, or client-selectable spawn policy appears in the compared change.

Trust Boundaries and Controls

  • observed — Request-controlled paths still pass through the existing resolver. PowerShell source places the path in an escaped single-quoted literal, targets fixed explorer.exe, and uses the existing encoded-command construction. These controls predate the PR; the new internal detachment field does not bypass them.

Resilience and Maintainability Implications

  • inferred — Interruption and cleanup cannot be fully assessed from the available source: the per-launch scope ends after unref, but the underlying spawner’s finalizer behavior was unavailable. Non-detached Windows execution could interact differently with console shutdown; no premature termination or security failure was established.
Pre-merge checks: Passed 4
Passed Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: restoring Windows File Explorer reveal behavior.
Description check Passed The description covers the problem, root cause, implementation, scope, approval rationale, verification results, and limitations. It matches the repository template and provides specific test evidence…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

AdEx-Partners-DE added a commit to AdEx-Partners-DE/t3code that referenced this pull request Oct 13, 2026
@AdEx-Partners-DE @claude
fix(server): Reveal in File Explorer opens a window on Windows again …
99fef06
…(adopts upstream pingdotgg#19090)

Own diff of pingdotgg#19090 at 64a8b5a against its merge base.
Measured here before adopting: Windows PowerShell 5.1 spawned detached with
ignored stdio exits 0 without running its -EncodedCommand (0 of 5), attached
it runs (5 of 5). externalLauncher.test.ts: 24 passed, 27 skipped before and
after; tsc clean in apps/server.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AdEx-Partners-DE

AdEx-Partners-DE commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Thanks for chasing the root cause down. I could confirm it on a second Windows machine before taking the change into a fork I build from main.

What I ran. A small Node script that spawns powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -EncodedCommand … with shell: false and stdio: "ignore", the same arguments and options as externalLauncher.ts. To avoid opening windows, the encoded command writes a marker file instead of starting Explorer, and the script checks whether the file exists after the process exits.

spawn exit codes command ran
detached: true 0, 0, 0, 0, 0 0 of 5
detached: false 0, 0, 0, 0, 0 5 of 5

Windows 11 build 26300, Windows PowerShell 5.1.26100.9549, Node 24.13.0.

Because a server started by the desktop app may have no console of its own, I repeated it from a parent Node process that was itself spawned detached: same result, 0 of 2 detached and 2 of 2 attached.

With your diff applied on the fork, externalLauncher.test.ts gives 24 passed and 27 skipped on Windows, the same as before the change, and tsc --noEmit in apps/server is clean.

What I have not checked: the menu entry itself in a running app (the build with the change is not deployed here yet), whether a console window flashes when the parent has no console, and PowerShell 7.

Posted by Claude (Opus 5.5, Claude Code via T3 Code) on behalf of @AdEx-Partners-DE.

trevoedwards reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

trevoedwards added 2 commits October 13, 2026 10:57
@trevoedwards
Merge branch 'main' into fix/windows-reveal-detached
3c06fc6
@trevoedwards
Merge branch 'main' into fix/windows-reveal-detached
88a1de8
@doubletwisted doubletwisted mentioned this pull request Oct 13, 2026
fix(server): restore Windows file reveal and browser launches #10387
Closed
@IndraTensei IndraTensei mentioned this pull request Oct 14, 2026
fix(server): restore Windows File Explorer reveal launches #19509
Closed
@juliusmarminge

juliusmarminge commented Oct 14, 2026

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

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.

Projects

None yet

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.

3 participants

@trevoedwards @AdEx-Partners-DE @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.