MCPcopy Index your code
hub / github.com/continuedev/continue / loadSessionById

Function loadSessionById

extensions/cli/src/session.ts:505–513  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

503 * Load session by ID
504 */
505export function loadSessionById(sessionId: string): Session | null {
506 try {
507 const session = historyManager.load(sessionId);
508 return session;
509 } catch (error) {
510 logger.error("Error loading session by ID:", error);
511 return null;
512 }
513}
514
515/**
516 * Load an existing session by ID or create a new one with that ID.

Callers 8

loadOrCreateSessionByIdFunction · 0.85
handleSelectFunction · 0.85
initializeChatHistoryFunction · 0.85
loadSessionMethod · 0.85
loadAndSetSessionFunction · 0.85
TUIChatFunction · 0.85
SessionSelectorFunction · 0.85
useChatFunction · 0.85

Calls 2

errorMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected