[Bug]: processes dont get closed on settling a chat #25062
TheDarkSkyXD(GitHub profile, opens in a new tab) added labelsbug
TheDarkSkyXD(GitHub profile, opens in a new tab) added labelsneeds-triage
TheDarkSkyXD(GitHub profile, opens in a new tab) changed the title
Sign in to join this conversation.
Adding support for this from a resource-constrained Windows workflow. When I settle a finished thread, I want T3 Code to release that thread's unused compute resources without having to restart the app or PC.
For this existing process-lifecycle bug, the most useful fix would be deterministic, thread-scoped cleanup: track which process trees/background commands belong to the thread, terminate only those that are safe to stop, wait for exit with bounded timeouts, and report what was released. Windows process/job ownership is preferable to guessing based on executable names or ports. Shared provider processes, processes owned by other threads, and still-awaited work must be preserved. Any temporary-file cleanup should be restricted to T3-owned paths and must not remove project changes.
As a separate optional enhancement, a configurable low-cost agent/skill could perform contextual pre-settle cleanup, but OS-level resource release should not depend on an LLM. That feature fits the existing pre-/post-settle hooks discussion #22320.
Related: #27018 (provider processes block Windows worktree deletion) and #15579 (retained preview renderers). This is support for the reported behavior, not an independently measured additional reproduction.