Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): request a new Explorer window when revealing files #11174

ClosedMatthewFeroz(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/11174/headopened View on GitHub

Windows "Reveal in File Explorer" can appear to do nothing even when the server successfully launches the reveal command. During investigation, Explorer windows for previously requested files were present but hidden. The original cause of those windows becoming hidden is still unknown.

This draft proposes adding /n to the existing PowerShell-launched /select,"<path>" command to request a new Explorer window. It preserves path normalization and raw argument quoting, and updates the Windows and WSL command expectations plus the real Windows PowerShell argument smoke test. A tradeoff is that repeated reveals request additional windows rather than reusing an existing one.

Validation:

  • Updated command expectations failed before the implementation change and passed afterward. Focused launcher suite on Windows: 9 passed, 13 platform-specific tests skipped, including the WSL simulation tests. The real PowerShell quoting test passed.
  • Targeted lint, formatting, and server typecheck passed (typecheck emitted existing suggestions).
  • A separate Windows experiment opened an isolated fixture folder, hid only its test window, and launched the reveal command for a filename containing a space and an apostrophe. The proposed command produced a visible window with the correct file selected. The original command also succeeded in this experiment, so this is compatibility evidence, not a reproduction proving the mitigation resolves the reported intermittent failure.

Keeping this as a draft pending validation against a recurrence of the actual failure. The needed comparison is whether the old command leaves the requested folder invisible while /n,/select presents the correct file. Successful process creation or a passing argument test alone is insufficient. This PR does not establish an introducing commit or claim the issue is fixed.

Model: GPT-6. Harness: Codex in T3 Code.

Summary by CodeRabbit

  • Behavior Changes
    • File Explorer now opens a new window when revealing a selected file.
    • The target file remains selected using the existing reveal action.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      ✅ Action performed

      Review finished.

      Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

    3. Review Change StackReview Change Stack

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration

      Configuration used: Path: .coderabbit.yaml

      Review profile: CHILL

      Plan: Advanced

      Run ID: eba2f7f0-1bf7-4daf-98ca-3f1680d97172

      📥 Commits

      Reviewing files that changed from the base of the PR and between c52b8d96e4b34201f19b5e5bb12c6b2a77bfaa9a and c6e24b63512a82ec01fb595f0f929185aa4fd9ea.

      📒 Files selected for processing (2)
      • apps/server/src/process/externalLauncher.test.ts
      • apps/server/src/process/externalLauncher.ts

      Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


      📝 Walkthrough

      Walkthrough

      File Explorer reveal commands now request a new window while selecting the target path. PowerShell, real-PowerShell, and WSL interop tests validate the /n,/select,"<path>" argument format.

      Changes

      File Explorer reveal

      Layer / File(s)Summary
      New-window Explorer reveal
      apps/server/src/process/externalLauncher.ts, apps/server/src/process/externalLauncher.test.ts
      The Explorer command now prepends /n to the reveal switches. Related PowerShell, smoke, and WSL interop tests expect the new format.

      Priority: ⬇️ Low

      Estimated code review effort: 1 (Trivial) | ~5 minutes

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to c6e24

      The change is narrowly scoped and validated across the affected Windows and WSL reveal paths, with no concrete merge-blocking risk identified.

      🚥 Pre-merge checks | ✅ 4 | ❌ 1

      ❌ Failed checks (1 warning)

      Check nameStatusExplanationResolution
      Docstring Coverage⚠️ WarningDocstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files.Write docstrings for the functions missing them to satisfy the coverage threshold.
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Description check✅ PassedThe description clearly explains what changed, why the change was proposed, validation results, tradeoffs, and the draft status. It does not include the template headings or checklist, but the require…
      Title check✅ PassedThe title is concise, specific, and accurately describes the main change: requesting a new Explorer window when revealing files.
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      • Fix all pre-merge checks with AI
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      Comment `@coderabbitai help` to get the list of available commands.
    4. Reviewed CodeRabbit's results for c6e24b63512a82ec01fb595f0f929185aa4fd9ea. There are no actionable code findings or unresolved review threads, and GitHub CI passed, including the server test jobs and release smoke.

      The docstring-coverage warning does not warrant another source change: the exported PowerShell builder already has JSDoc describing the new-window request and quoting constraint, and the smoke test has a comment explaining its real process-chain validation. Extra documentation for coverage alone would conflict with this repository's guidance to document meaningful constraints rather than add redundant prose.

      The draft's remaining validation requirement still applies: a recurrence of the reported failure must demonstrate a difference between the old command and /n,/select. The isolated hidden-window experiment succeeded with both commands, so green CI and bot review do not prove the intermittent issue is resolved.

    5. Note

      This comment is posted by Julius' dot

      Closing for incomplete verification. The Windows experiment succeeds with both the original command and /n,/select, so it does not establish that opening extra windows fixes the reported failure. Please show a case where the old command leaves the file hidden and the proposed command reveals it, with observed results, then request reconsideration.

    6. juliusmarminge closed this

Sign in to join this conversation.