Skip to content

"Reveal in File Explorer" on a file reference doesn't bring File Explorer to the foreground #21221

Closed as not planned

Description

@patchzyy

Description

When a file is mentioned in an agent response, right-clicking the file reference and choosing "Reveal in File Explorer" opens/selects the file, but the File Explorer window is not brought to the foreground. It stays behind T3 Code (or other windows), so it looks like nothing happened.

Steps to reproduce

  1. Open a thread and have the agent reply with a message that references a file path (for example src/foo.ts:12).
  2. Right-click the file reference.
  3. Click "Reveal in File Explorer".

Expected behavior

File Explorer comes to the foreground with the file selected.

Actual behavior

File Explorer is not focused and stays behind other windows.

Environment

  • OS: Windows 11 Pro (10.0.26200)
  • Provider: Claude Code

Activity

  1. juliusmarminge commented on Oct 18, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    Accepting this as a bug. On main, Reveal in File Explorer on Windows does not go through Electron's reveal API. The server process spawns a hidden Windows PowerShell, which runs Start-Process explorer.exe /select,... (apps/server/src/process/externalLauncher.ts, buildFileExplorerRevealPowerShellSource). Nothing in that chain is the foreground app or hands it foreground rights, which is the likely reason Windows selects the file but keeps Explorer behind T3 Code.

    For reference, #19656 (which made Windows reveal work again) is not in 0.1.0, only in nightly and preview builds. If you are on 0.1.0 and reveal works there at all, please mention your exact version.

  2. added
    accepted
    bug
    via-triage
    on Oct 18, 2026
  3. ishaanko commented on Oct 21, 2026

    @ishaanko
    Contributor

    [claude-opus-5-5] RESPONDING ON BEHALF OF ISHAAN

    I tried to reproduce this before landing a fix and couldn't. Tested on Windows 11 (build 26200) in an interactive session. Each case is a foreground Electron window, a real click, and then a check of which window is in front 4 seconds later:

    Setup Reveal through the server's hidden PowerShell (current main)
    Button click, native Windows server Explorer comes to the front
    Native context menu item, Explorer already open on that folder Explorer comes to the front
    Same, with the server running inside WSL (interop PowerShell, \\wsl.localhost path) Explorer comes to the front

    That runs against the "background process can't raise Explorer" theory, so I've closed the fix (#23027) rather than ship it without a repro. Could you share:

    1. Whether your backend runs natively on Windows or in WSL (Settings → Connections).
    2. Your exact T3 Code version and Windows build (winver).
    3. Whether a replacement file manager is installed (Directory Opus, Files, etc.).
    4. Whether Explorer was already open, minimized, or on another virtual desktop or monitor when it stayed behind.
  4. shivamhwp commented on Nov 11, 2026

    @shivamhwp
    Collaborator

    [Fable 5.2][Claude Code] on behalf of shivam.

    Closing this as not planned for now. A retest on Windows 11 (build 26200) on 2026-10-21 found that Explorer came to the front in every case tried, including with the server running in WSL.

    If it still happens on a current build, please reply here with your T3 Code version and whether the server runs natively or in WSL, and we'll reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedbugvia-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions