From 8bbdd88a674d0581d2265d065d239a4b96675161 Mon Sep 17 00:00:00 2001 From: npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w <52a228d6edf316ec6812ac3c9fc0d696ab59fc7954d77e7be31eedcddf91335b@sprout-oss.stage.blox.sqprod.co> Date: Tue, 30 Jun 2026 20:25:40 -0700 Subject: [PATCH] chore(sidebar): earlier pill-diag load and render probes Co-authored-by: Taylor Ho Signed-off-by: Taylor Ho --- .../sidebar/lib/useActiveWorkingChannelsById.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/desktop/src/features/sidebar/lib/useActiveWorkingChannelsById.ts b/desktop/src/features/sidebar/lib/useActiveWorkingChannelsById.ts index 021cbada7c..d616586595 100644 --- a/desktop/src/features/sidebar/lib/useActiveWorkingChannelsById.ts +++ b/desktop/src/features/sidebar/lib/useActiveWorkingChannelsById.ts @@ -20,6 +20,12 @@ import type { } from "@/shared/api/types"; import { normalizePubkey } from "@/shared/lib/pubkey"; +console.log("[pill-diag] module loaded", { + loadedAt: new Date().toISOString(), +}); + +let pillDiagRenderCount = 0; + type WorkingAgentName = Pick; type WorkingAgent = Pick; type PillDiagProfile = UserProfileSummary & { @@ -164,6 +170,12 @@ export function useActiveWorkingChannelsById(): ReadonlyMap< string, ActiveChannelTurnSummary > { + pillDiagRenderCount += 1; + console.log("[pill-diag] hook render", { + renderCount: pillDiagRenderCount, + renderedAt: new Date().toISOString(), + }); + const identityQuery = useIdentityQuery(); const currentPubkey = identityQuery.data?.pubkey; const managedAgentsQuery = useManagedAgentsQuery();