MCPcopy Create free account
hub / github.com/allocnode/oh-my-sage / loadSession

Method loadSession

src/server/agent/agent.ts:65–68  ·  view source on GitHub ↗

* 加载 session 历史到 messages

(sessionId: string)

Source from the content-addressed store, hash-verified

63 * 加载 Session 历史到 messages
64 */
65 async loadSession(sessionId: string): Promise<void> {
66 this.sessionId = sessionId;
67 await this.reloadMessages();
68 }
69
70 /**
71 * 从 sessionStore 重新加载消息到 messages

Callers 1

POSTFunction · 0.95

Calls 1

reloadMessagesMethod · 0.95

Tested by

no test coverage detected