MCPcopy Index your code
hub / github.com/anomalyco/opencode / snapshot

Function snapshot

packages/opencode/src/acp/session.ts:219–226  ·  view source on GitHub ↗
(session: Info)

Source from the content-addressed store, hash-verified

217}
218
219function snapshot(session: Info): Info {
220 return {
221 ...session,
222 mcpServers: [...session.mcpServers],
223 createdAt: new Date(session.createdAt),
224 knownParts: new Map(session.knownParts),
225 }
226}
227
228function partMetadataKey(input: { messageId: string; partId: string }) {
229 return `${input.messageId}:${input.partId}`

Callers 1

session.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected