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

Function getWorkspaceTerminalCacheKey

packages/app/src/context/terminal.tsx:88–90  ·  view source on GitHub ↗
(dir: string, scope: ServerScopeValue = ServerScope.local)

Source from the content-addressed store, hash-verified

86}
87
88export function getWorkspaceTerminalCacheKey(dir: string, scope: ServerScopeValue = ServerScope.local) {
89 return ScopedKey.from(scope, dir, WORKSPACE_KEY)
90}
91
92export function getLegacyTerminalStorageKeys(dir: string, legacySessionID?: string) {
93 if (!legacySessionID) return [`${dir}/terminal.v1`]

Callers 3

terminal.test.tsFile · 0.85
clearWorkspaceTerminalsFunction · 0.85
loadWorkspaceFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected