MCPcopy
hub / github.com/benjitaylor/agentation / updateSessionStatus

Function updateSessionStatus

mcp/src/server/store.ts:111–123  ·  view source on GitHub ↗
(id: string, status: SessionStatus)

Source from the content-addressed store, hash-verified

109 },
110
111 updateSessionStatus(id: string, status: SessionStatus): Session | undefined {
112 const session = sessions.get(id);
113 if (!session) return undefined;
114
115 session.status = status;
116 session.updatedAt = new Date().toISOString();
117
118 const eventType = status === "closed" ? "session.closed" : "session.updated";
119 const event = eventBus.emit(eventType, id, session);
120 events.push(event);
121
122 return session;
123 },
124
125 listSessions(): Session[] {
126 return Array.from(sessions.values());

Callers

nothing calls this directly

Calls 3

getStoreFunction · 0.85
emitMethod · 0.80
updateSessionStatusMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…