MCPcopy
hub / github.com/pingdotgg/t3code / sessionsForThread

Function sessionsForThread

apps/server/src/preview/Manager.ts:76–85  ·  view source on GitHub ↗
(
  state: ManagerState,
  threadId: string,
)

Source from the content-addressed store, hash-verified

74const compositeKey = (threadId: string, tabId: string): string => `${threadId}\u0000${tabId}`;
75
76const sessionsForThread = (
77 state: ManagerState,
78 threadId: string,
79): ReadonlyArray<PreviewSessionState> => {
80 const out: PreviewSessionState[] = [];
81 for (const session of state.sessions.values()) {
82 if (session.threadId === threadId) out.push(session);
83 }
84 return out;
85};
86
87const normalizeUrl = (rawUrl: string): Effect.Effect<string, PreviewInvalidUrlError> =>
88 Effect.try({

Callers 2

closeFunction · 0.85
Manager.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected