MCPcopy Create free account
hub / github.com/GCWing/BitFun / isTargetActive

Function isTargetActive

src/web-ui/src/flow_chat/services/sessionActivation.ts:32–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31export async function activateMainSession(sessionId: string): Promise<boolean> {
32 const isTargetActive = () => flowChatStore.getState().activeSessionId === sessionId;
33 const targetSession = flowChatStore.getState().sessions.get(sessionId) ?? null;
34 if (!targetSession) {
35 return false;

Callers 1

activateMainSessionFunction · 0.85

Calls 1

getStateMethod · 0.65

Tested by

no test coverage detected