chore(sidebar): earlier pill-diag load and render probes

Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w
2026-06-30 20:25:40 -07:00
parent 2143fee81d
commit 8bbdd88a67

View File

@@ -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<ManagedAgent, "pubkey" | "name">;
type WorkingAgent = Pick<ManagedAgent, "pubkey" | "name" | "status">;
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();