MCPcopy Create free account
hub / github.com/anomalyco/opencode / session

Function session

packages/app/src/utils/persist.ts:502–504  ·  view source on GitHub ↗
(dir: string, session: string, key: string, legacy?: string[])

Source from the content-addressed store, hash-verified

500 return serverWorkspaceTarget(scope, dir, `workspace:${key}`, legacy)
501 },
502 session(dir: string, session: string, key: string, legacy?: string[]): PersistTarget {
503 return serverWorkspaceTarget(ServerScope.local, dir, `session:${session}:${key}`, legacy)
504 },
505 serverSession(scope: ServerScopeValue, dir: string, session: string, key: string, legacy?: string[]): PersistTarget {
506 return serverWorkspaceTarget(scope, dir, `session:${session}:${key}`, legacy)
507 },

Callers 5

PlaygroundFunction · 0.50
ensureTurnFunction · 0.50
addUserFunction · 0.50
addFullTurnFunction · 0.50
interruptFunction · 0.50

Calls 1

serverWorkspaceTargetFunction · 0.85

Tested by

no test coverage detected