MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / openSession

Function openSession

apps/desktop/src/main/session-chat.ts:130–134  ·  view source on GitHub ↗
(opts: SessionChatStoreOptions, designId: string)

Source from the content-addressed store, hash-verified

128}
129
130function openSession(opts: SessionChatStoreOptions, designId: string): SessionManager {
131 mkdirSync(opts.sessionDir, { recursive: true });
132 const file = sessionFileForDesign(opts.sessionDir, designId);
133 return SessionManager.open(file, opts.sessionDir, resolveSessionCwd(opts, designId));
134}
135
136function flushSession(manager: SessionManager): void {
137 const file = manager.getSessionFile();

Callers 5

appendCommentEventFunction · 0.85
appendSessionChatMessageFunction · 0.85
appendSessionToolStatusFunction · 0.85
appendSessionDesignBriefFunction · 0.85

Calls 2

sessionFileForDesignFunction · 0.85
resolveSessionCwdFunction · 0.85

Tested by

no test coverage detected