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();