The best way to control Claude Code, Codex and more from any computer or phone
fix(web): collapsing Electron main no longer hides the backend server (#32619)
Co-authored-by: maria-rcks <maria@kuuro.net> Co-authored-by: Julius Marminge <julius0216@outlook.com>
Pradip Chaudhary committed
Nov 15, 2026 at 11:47 UTC
7f575e6328e030af55a8be356a8e7ead3c36783f
2 files changed
+12
apps/web/src/components/settings/ResourceTelemetryDiagnostics.logic.test.ts
+10
@@ -49,6 +49,16 @@ describe("visibleResourceTelemetryProcesses", () => {
49
processes[3],
50
]);
51
});
52
+
53
+ it("keeps a root row visible when its launcher is collapsed", () => {
54
+ const processes = [process(1, 10, 0), process(2, 1, 1), process(10, 0, 0), process(11, 10, 1)];
55
+
56
+ expect(visibleResourceTelemetryProcesses(processes, new Set(["10:10000"]))).toEqual([
57
+ processes[0],
58
+ processes[1],
59
+ processes[2],
60
+ ]);
61
+ });
62
});
63
64
describe("formatCpuTime", () => {
apps/web/src/components/settings/ResourceTelemetryDiagnostics.logic.ts
+2
@@ -18,6 +18,8 @@ export function visibleResourceTelemetryProcesses(
18
const hidden = new Set<string>();
19
const hideDescendants = (pid: number): void => {
20
for (const child of childrenByParent.get(pid) ?? []) {
21
+ // Depth 0 rows are their own roots, e.g. the server launched by Electron main.
22
+ if (child.depth === 0) continue;
23
const key = processIdentityKey(child);
24
if (hidden.has(key)) continue;
25
hidden.add(key);