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

Function saveSession

extensions/cli/src/session.ts:279–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277 * Save the current session to file
278 */
279export function saveSession(): void {
280 try {
281 const manager = SessionManager.getInstance();
282 if (!manager.hasSession()) {
283 return;
284 }
285
286 const session = manager.getCurrentSession();
287 if (!hasSessionContent(session)) {
288 return;
289 }
290
291 const sessionToSave = getSessionPersistenceSnapshot(session);
292 historyManager.save(sessionToSave);
293 } catch (error) {
294 logger.error("Error saving session:", error);
295 }
296}
297
298/**
299 * Load session from current terminal's session file

Callers 4

updateHistoryMethod · 0.85
updateTitleMethod · 0.85
trackUsageMethod · 0.85
session.test.tsFile · 0.85

Calls 7

hasSessionContentFunction · 0.85
hasSessionMethod · 0.80
getCurrentSessionMethod · 0.80
errorMethod · 0.80
saveMethod · 0.65
getInstanceMethod · 0.45

Tested by

no test coverage detected