[codex] Prevent background Git fetches from leaking temp packs#3537
16 unresolved threads · Jump to file
- apps/desktop/src/telemetry/DesktopTelemetryPublisher.ts:234 · 🟡 **Medium** `telemetry/DesktopTelemetryPublisher.ts:234` A telemetry consumer connecting via the
- apps/server/src/resourceTelemetry/NativeTelemetryClient.ts:369 · 🟡 **Medium** `resourceTelemetry/NativeTelemetryClient.ts:369` Successful snapshot and `historyChun
- apps/server/src/background/BackgroundPolicy.ts:45 · 🟡 **Medium** `background/BackgroundPolicy.ts:45` `reportClientActivity` always uses `DEFAULT_LEASE
- apps/server/src/resourceTelemetry/NativeTelemetryClient.ts:652 · 🟡 **Medium** `resourceTelemetry/NativeTelemetryClient.ts:652` `setHostPowerState` and `changeLiveS
- apps/server/src/provider/Layers/EventNdjsonLogger.ts:226–226 · 🟠 **High** `Layers/EventNdjsonLogger.ts:226` `enforceRetention` deletes every file in the store's
- apps/server/src/resourceTelemetry/DesktopTelemetryReceiver.ts:356 · 🟡 **Medium** `resourceTelemetry/DesktopTelemetryReceiver.ts:356` The stale-check loop reads `lates
- apps/web/src/components/settings/SettingsPanels.tsx:223 · 🟡 **Medium** `settings/SettingsPanels.tsx:223` `backgroundActivityOverrideSettings` builds the cus
- apps/server/src/vcs/GitVcsDriverCore.ts:1027 · ### Deletes unrelated fetch temp packs **Medium Severity** <!-- DESCRIPTION START --> After a fail
- apps/server/src/provider/Layers/EventNdjsonLogger.ts:368–371 · 🟡 **Medium** `Layers/EventNdjsonLogger.ts:368` When a `sink.write` call throws, `drainPending` add
- apps/desktop/src/app/DesktopBackendOutputLog.ts:440 · 🟡 **Medium** `app/DesktopBackendOutputLog.ts:440` `persistFailure` clears the buffered `chunks` fr
- apps/server/src/resourceTelemetry/ResourceTelemetryHistory.ts:152 · 🟡 **Medium** `resourceTelemetry/ResourceTelemetryHistory.ts:152` `buildResourceTelemetryHistory` a
- apps/server/src/diagnostics/ProcessDiagnostics.ts · File comment · 🟡 **Medium** https://github.com/pingdotgg/t3code/blob/58340604f0b7967e7a5a3e532993f3443442d14e/app
- apps/server/src/resourceTelemetry/ResourceTelemetryHistory.ts:149 · 🟡 **Medium** `resourceTelemetry/ResourceTelemetryHistory.ts:149` `buildResourceTelemetryHistory` f
- apps/server/src/resourceTelemetry/Model.ts:396 · 🟡 **Medium** `resourceTelemetry/Model.ts:396` When an Electron metric arrives without a matching n
- apps/server/src/background/BackgroundPolicy.ts:238–241 · 🟡 **Medium** `background/BackgroundPolicy.ts:238` `make` never subscribes to `serverSettings.strea
- apps/server/src/resourceTelemetry/Model.ts:456 · 🟡 **Medium** `resourceTelemetry/Model.ts:456` `mergeProcesses` classifies a process as `electron-m
0 / 100 viewed100 files changedLine totals unavailable
apps/server/src/diagnostics/ProcessDiagnostics.ts · File comment
macroscopeappJul 29, 2026
🟡 Medium
The read function filters only the server PID out of snapshot.processes, so independent Electron roots and the resource-monitor process are returned as server child processes. This inflates processCount, totalRssBytes, and totalCpuPercent, and their depth is clamped to 0 via Math.max(0, entry.depth - 1) even though they are not descendants of the server. The filter at line 78 should restrict the list to the server/backend descendant tree rather than all telemetry processes.
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
text
| 1 | In file @apps/server/src/diagnostics/ProcessDiagnostics.ts around line 1: |
| 2 | |
| 3 | The `read` function filters only the server PID out of `snapshot.processes`, so independent Electron roots and the resource-monitor process are returned as server child processes. This inflates `processCount`, `totalRssBytes`, and `totalCpuPercent`, and their `depth` is clamped to `0` via `Math.max(0, entry.depth - 1)` even though they are not descendants of the server. The filter at line 78 should restrict the list to the server/backend descendant tree rather than all telemetry processes. |