Repository navigation
Let administrators turn off the native resource monitor with an environment variable #38138
jieyuexing
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Note
Drafted by Claude Fable 5.2 in Claude Code (running inside T3 Code); reviewed and posted by @jieyuexing
Problem
The server always starts the native
t3-resource-monitorchild, which walks the host's process table and reads every process's CPU and memory. On managed corporate workstations that behavior is what endpoint security products watch for: an unrecognised helper that enumerates processes can be blocked, quarantined or reported to IT, and some organisations forbid that kind of sampling outright. Today an administrator has no supported way to keep T3 Code without the monitor; the only options are deleting the binary from the install or pointingT3CODE_RESOURCE_MONITOR_PATHat something that fails.Proposal
T3CODE_RESOURCE_MONITOR_ENABLED=falsein the server's environment turns the native monitor off:NativeTelemetryClient, the only caller of the binary resolver, reports the monitorunavailablewith the reason "Native resource monitoring is disabled by server configuration."T3CODE_RESOURCE_MONITOR_PATH.NativeTelemetryUnavailable, and a manual retry returnsfalse. The server keeps running, asdocs/internals/resource-telemetry.mdalready requires for a missing collector.WSLENV, next toT3CODE_TELEMETRY_ENABLED.docs/user/telemetry.mddocuments the switch.The default stays enabled. The switch is independent of
T3CODE_TELEMETRY_ENABLED. It does not change terminal subprocess discovery, whose existing fallback can still run PowerShell on Windows. The docs say so, so administrators do not read it as "no process inspection at all".Prior work
#29192 implemented this with tests and live runs on macOS and Windows 11. I closed that PR to stay within the open-PR limit and am moving the idea here instead. The branch
feat/resource-monitor-env-switchis still available if a maintainer wants this as a PR.All reactions