Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Periodic Claude provider refresh still leaves suspended orphan git.exe processes on Windows #9002

ClosedHMBSbige(GitHub profile, opens in a new tab) opened this issue 3 comments

Before submitting

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

Area

apps/server

Steps to reproduce

This is a follow-up to #8575 after #8634. The remaining issue is that T3 Code does not always clean up the complete Claude probe process tree.

Normal reproduction:

  1. Enable the Claude provider with claude as its binary path.
  2. Leave the provider configuration unchanged and keep T3 Code running.
  3. Wait for several scheduled provider refresh cycles, approximately five minutes apart.
  4. After each refresh finishes and the Claude process exits, check Task Manager for a remaining git.exe process.

Faster reproduction:

  1. Open the Claude provider settings and set the binary path to claude.
  2. Once the provider status check starts, clear the binary path before the check finishes.
  3. Set it back to claude and repeat the change several times, allowing a new status check to start each time.
  4. After the checks stop and the Claude processes exit, inspect Task Manager for remaining child processes.

Depending on the timing, the faster reproduction may leave git.exe, tasklist.exe, findstr.exe, or conhost.exe processes behind. The issue is intermittent and may require several attempts.

Expected behavior

When a Claude provider probe completes, times out, or is cancelled, T3 Code should terminate the entire process tree created for that probe, including the Claude process and all of its descendants.

Actual behavior

During a normal scheduled provider refresh, a git.exe process started by Claude can remain after the Claude process exits. The observed process had one thread and remained in the Wait:Suspended state indefinitely.

Rapidly switching the Claude binary path between claude and an empty value can reproduce the cleanup failure more quickly. Depending on the timing, git.exe, tasklist.exe, findstr.exe, or conhost.exe processes may remain after the Claude process exits.

Impact

Major degradation or frequent failure

Version or commit

0.0.38-nightly.20260901.1242

Environment

Windows 11 x64, Claude Code 2.1.252, Git for Windows 2.55.0.windows.3

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

  1. HMBSbige(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. Windows 11, T3 Nightly 0.0.37-nightly.20260829.1219, Claude Code 2.1.255 on PATH.

    Sampled during a live T3 session. git.exe was 2, then 0 a minute later. The claude.exe crowd on this box is mostly the Store Claude app, not T3 provider probes.

    I didn't wait through several 5-minute refresh cycles, so this is not a cannot-repro. Just: no leftover suspended git.exe in this snapshot.

  3. With T3 Code 0.0.42 / Claude Code 2.1.283, the status probe now launches subprocesses including reg.exe, git.exe, cmd.exe, and conhost.exe.

    Orphaned reg.exe processes executing the MachineGuid query have been observed remaining in Wait:Suspended after their parent processes exited.

  4. I haven’t observed any orphaned processes with T3 Code 0.1.0 + Claude Code 2.1.301. The issue appears to be resolved.

Sign in to join this conversation.