fix(host-sensors): one shared Windows sampler, guard late rows, address review

This commit is contained in:
Devvyn committed 2026-10-24 00:05:21 +08:00
1 parent e1d6471808
commit ce7d198b91
9 files changed
+186 -54

No files matched your search

+4
View File
@@ -45,6 +45,7 @@ import { looksLikeHostReboot, newestPersistedActivity, planRebootRestore } from
import { rebootRestoreRegistry } from './reboot-restore-registry.js';
import { dataPath, getDataDir, CODEMAN_INSTANCE } from '../config/instance.js';
import { WebhookNotifier, readWebhookConfig } from '../webhook-notify.js';
import { stopHostSensors } from '../host-sensors.js';
import type { WebhookUrgency } from '../types/push.js';
import { webviewFetch } from './webview-egress.js';
import { readRemoteHosts, rehydrateRemoteHostFields } from '../remote-hosts.js';
@@ -4173,6 +4174,9 @@ export class WebServer extends EventEmitter {
// got wrong once.
void stopDeepSeekWeb();
// The header's GPU / CPU clock sampler is a Windows child process under WSL, and its idle sweep a timer.
stopHostSensors();
// Same teardown rule: the per-endpoint llama-swap log tails are otherwise closed
// only by the periodic idle sweep, whose interval is disposed just below.
closeAllLlamaSwapLogTails();