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

Function serverSession

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

Source from the content-addressed store, hash-verified

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 },
508 scoped(dir: string, session: string | undefined, key: string, legacy?: string[]): PersistTarget {
509 if (session) return Persist.session(dir, session, key, legacy)
510 return Persist.workspace(dir, key, legacy)

Callers

nothing calls this directly

Calls 1

serverWorkspaceTargetFunction · 0.85

Tested by

no test coverage detected