Skip to content

[Bug]: Windows reports every provider CLI not found even when they are on User PATH #7360

Open

Description

@AMDphreak

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. On Windows, install any T3 provider CLI so it is on User PATH (winget, official irm installer, npm). Confirm a new PowerShell window can run it (Get-Command opencode, grok, codex, cursor-agent, …).
  2. Launch T3 Code from the desktop shortcut / Start Menu (not from that shell).
  3. Open Settings → Providers.

Expected behavior

Each installed CLI is found (opencode, grok, codex, cursor-agent, claude, …) without setting an absolute binaryPath.

Actual behavior

Every local provider stays red / Not found, even when the same binaries were on User PATH before T3 was installed. A refreshed PowerShell session finds them. Restarting T3 does not help.

This is Windows-only. Electron inherits a stale process PATH. The Windows environment probe uses [Environment]::GetEnvironmentVariable('PATH') (process env), not User/Machine registry. macOS/Linux login-shell probing is a different path and is not this bug.

On this machine the CLIs are present:

cursor-agent → %LOCALAPPDATA%\cursor-agent\cursor-agent.cmd
opencode     → %LOCALAPPDATA%\Microsoft\WinGet\Links\opencode.exe
grok         → %LOCALAPPDATA%\Microsoft\WinGet\Links\grok.exe
codex        → %LOCALAPPDATA%\Microsoft\WinGet\Links\codex.exe

T3 looks for cursor-agent, opencode, grok, codex, and claude. User PATH includes %LOCALAPPDATA%\Microsoft\WinGet\Links and %LOCALAPPDATA%\cursor-agent.

Impact

Major degradation or frequent failure

Version or commit

Current Windows desktop (reproduced 2026-08-17)

Environment

  • OS: Windows 11 (Build 26200)
  • Shell: PowerShell 7
  • T3 Code desktop Settings → Providers
  • Provider CLIs on User PATH via WinGet Links and the official Cursor CLI installer

Workaround

Set each provider binaryPath to the absolute executable, or launch T3 from a shell whose process PATH already includes User PATH.

Related

Activity

  1. AMDphreak commented on Aug 18, 2026

    @AMDphreak
    Author

    Fix attempt: #7362

    Screenshot of Settings (Cursor CLI not found) next to a PowerShell session that successfully launched cursor-agent is attached in the original report. I can add the PNG in a follow-up comment if GitHub UI upload is needed.

  2. changed the title [-][Bug]: Windows reports cursor-agent not found after official CLI install[/-] [+][Bug]: Windows reports every provider CLI not found even when they are on User PATH[/+] on Aug 18, 2026
  3. coah80 commented on Aug 21, 2026

    @coah80

    bump this, having and issue with cursor just not being detected at all

    Image
  4. t3dotgg commented on Sep 4, 2026

    @t3dotgg
    Member

    Note

    🤖 GPT-6 Astra (preview) responding on behalf of Theo

    This note is part of an automated cleanup pass.

    Preserve the mid-session acceptance case from #6352 alongside startup detection. Start T3 while Codex is absent, install Codex with the official Windows installer while T3 stays open, then click Refresh provider status. It must find the CLI without an app restart. Keep uninstall-then-refresh detection working too.

    The macOS comment reports a similar symptom but has no version, install method, or PATH evidence. It needs a separate macOS reproduction. A Windows registry-PATH fix does not establish that the macOS case is fixed.

  5. adesugbaa commented on Sep 4, 2026

    @adesugbaa

    This is happening on macOS - all providers reporting as missing even though they are on the laptop. Do I report a new issue?

    T3Code Version: 0.0.39-nightly.20260904.1280 (d6e29dc9dee9)
    
    which cursor
    /usr/local/bin/cursor
    
    which claude
    /Users/ayorinde/.local/bin/claude
    
    which opencode
    /opt/homebrew/bin/opencode
    
    which codex
    /opt/homebrew/bin/codex
    
    which grok
    /Users/ayorinde/.grok/bin/grok
  6. AMDphreak commented on Sep 4, 2026

    @AMDphreak
    Author

    This is happening on macOS - all providers reporting as missing even though they are on the laptop. Do I report a new issue?

    T3Code Version: 0.0.39-nightly.20260904.1280 (d6e29dc9dee9)
    

    which cursor
    /usr/local/bin/cursor

    which claude
    /Users/ayorinde/.local/bin/claude

    which opencode
    /opt/homebrew/bin/opencode

    which codex
    /opt/homebrew/bin/codex

    which grok
    /Users/ayorinde/.grok/bin/grok

    I like your comment. Wish all bug reports were this clean. It's unclear whether the problem is with something OS specific or further up the chain

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions