MCPcopy Index your code
hub / github.com/winfunc/opcode / initializeSession

Function initializeSession

src/components/ClaudeCodeSession.tsx:257–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255
256 // Load session history first, then check for active session
257 const initializeSession = async () => {
258 await loadSessionHistory();
259 // After loading history, check if the session is still active
260 if (isMountedRef.current) {
261 await checkForActiveSession();
262 }
263 };
264
265 initializeSession();
266 }

Callers 1

ClaudeCodeSessionFunction · 0.85

Calls 2

checkForActiveSessionFunction · 0.85
loadSessionHistoryFunction · 0.70

Tested by

no test coverage detected