diff --git a/internal/acpproc/acp_process_memory.go b/internal/acpproc/acp_process_memory.go index 26a62853..681199df 100644 --- a/internal/acpproc/acp_process_memory.go +++ b/internal/acpproc/acp_process_memory.go @@ -44,13 +44,6 @@ func processTreeRSSDetailed(pid int) (parent uint64, descendants uint64, descend return parent, descendants, descendantCount, nil } -// descendantsRSS recursively sums the RSS of all descendants of p. Per-process -// errors are skipped so a child exiting mid-walk does not fail the whole sum. -func descendantsRSS(p *process.Process) uint64 { - total, _ := descendantsRSSDetailed(p) - return total -} - // descendantsRSSDetailed recursively sums the RSS of all descendants of p and // counts them. Per-process errors are skipped so a child exiting mid-walk does // not fail the whole sum. diff --git a/internal/web/handlers/dashboard.go b/internal/web/handlers/dashboard.go index 63fdb642..d6ff8145 100644 --- a/internal/web/handlers/dashboard.go +++ b/internal/web/handlers/dashboard.go @@ -262,12 +262,6 @@ func itemStatus(item map[string]any) string { return s } -// itemType returns the "issue_type" field of an issue map as a string. -func itemType(item map[string]any) string { - s, _ := item["issue_type"].(string) - return s -} - // itemUpdatedAt returns the "updated_at" field of an issue map as a string. // bd emits RFC 3339 timestamps so lexicographic comparison matches chronology. func itemUpdatedAt(item map[string]any) string { diff --git a/internal/web/loop_runner_test.go b/internal/web/loop_runner_test.go index f9651b29..c63a4ede 100644 --- a/internal/web/loop_runner_test.go +++ b/internal/web/loop_runner_test.go @@ -4016,7 +4016,9 @@ func TestLoopRunner_WorkspaceKey(t *testing.T) { t.Error("keys should differ when WorkingDir differs") } // Same WorkingDir + ACPServer → same key. - if workspaceKey("/w", "a") != workspaceKey("/w", "a") { + k1 := workspaceKey("/w", "a") + k2 := workspaceKey("/w", "a") + if k1 != k2 { t.Error("keys should match for the same pair") } // NUL separator is present. diff --git a/web/static/hooks/useWebSocket.js b/web/static/hooks/useWebSocket.js index 6d147d2b..8fbba135 100644 --- a/web/static/hooks/useWebSocket.js +++ b/web/static/hooks/useWebSocket.js @@ -4315,7 +4315,6 @@ export function useWebSocket({ } staggeredBackgroundTimersRef.current = {}; }; - // eslint-disable-next-line preact/hooks/exhaustive-deps }, []); // forceReconnectActiveSession lives in useWSConnection (C1) — mitto-90f.6.2.