Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): reveal normalized paths in File Explorer #9551

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/9551/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

What Changed

Normalize slash-separated Windows file paths before passing them to File Explorer's /select switch. The launcher keeps the original target for reporting while sending Explorer a native backslash path.

The Windows launcher regression test now starts from the same forward-slash path shape produced by web file links and verifies the PowerShell process chain receives a valid Explorer selection argument.

Why

Chat file chips resolve Windows paths as C:/.... File Explorer interprets forward slashes inside /select as switches and silently ignores the requested selection, even though the detached launcher reports success.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • No visual UI changes
  • No animation or motion changes

Verification:

  • vp test run apps/server/src/process/externalLauncher.test.ts (22 passed)
  • vp lint --report-unused-disable-directives apps/server/src/process/externalLauncher.ts apps/server/src/process/externalLauncher.test.ts
  • vp run --filter t3 typecheck
  • vp fmt --check apps/server/src/process/externalLauncher.ts apps/server/src/process/externalLauncher.test.ts

Implemented with GPT-5.6 Sol via the Codex harness in T3 Code.


Note

Low Risk Small, localized change to Windows file reveal argument formatting with targeted tests; no auth, data, or API surface changes.

Overview Windows file-manager reveal now converts forward-slash paths (e.g. from chat file links as C:/...) to backslashes before building Explorer’s /select PowerShell argument. The reported target stays unchanged; only the path passed to explorer.exe is normalized.

Tests were updated to drive reveal with C:/... paths and assert the encoded PowerShell command and smoke-test recorder see C:\... in /select,"<path>", matching the web-link path shape on Windows hosts.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 8ccda10854b652be609985fccbc50addf62e7daa. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Fix resolveFileManagerRevealLaunch to normalize Windows paths for Explorer

Windows File Explorer requires backslash-separated paths, but web file links supply forward slashes. The new normalizeWindowsFileManagerPath utility in externalLauncher.ts converts the target before passing it to the Explorer reveal builder, while the launch record preserves the original path. Tests in externalLauncher.test.ts now exercise forward-slash input and assert backslash output.

Macroscope summarized 8ccda10.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ℹ️ The exact PR base did not have a successful artifact. Baseline uses the latest successful main measurement shown below.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.7 KiB13.7 KiB+2 B (+0.0%)15.1 KiB✅
      CodexThread snapshot wire7.0 KiB7.0 KiB−4 B (−0.1%)7.3 KiB✅
      CodexLive turn WebSocket wire6.7 KiB6.7 KiB+6 B (+0.1%)7.8 KiB✅
      CodexLive turn WebSocket decoded58.5 KiB58.5 KiB0 B (0.0%)66.4 KiB✅
      CodexLive turn messages10100 (0.0%)21✅
      ClaudeTotal thread wire13.8 KiB13.6 KiB−206 B (−1.5%)15.1 KiB✅
      ClaudeThread snapshot wire7.0 KiB7.0 KiB−2 B (−0.0%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.7 KiB6.5 KiB−204 B (−3.0%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded59.3 KiB57.8 KiB−1.5 KiB (−2.5%)66.4 KiB✅
      ClaudeLive turn messages109−1 (−10.0%)21✅

      Baseline: 5989de4 · PR result: 8ccda10 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 113.8 KiB
      • Claude decoded thread snapshot: 114.5 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    3. Approvability

      Verdict: Approved at 8ccda10

      Macroscope's review found this PR approvable — This localized bug fix converts web-style Windows paths to native separators only when constructing File Explorer’s selection argument, while preserving existing reporting and non-Windows behavior. Targeted tests cover the normalized PowerShell/Explorer command chain.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. juliusmarminge merged this617edab

    5. juliusmarminge closed this

Sign in to join this conversation.