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

Function getLegacyTerminalStorageKeys

packages/app/src/context/terminal.tsx:92–95  ·  view source on GitHub ↗
(dir: string, legacySessionID?: string)

Source from the content-addressed store, hash-verified

90}
91
92export function getLegacyTerminalStorageKeys(dir: string, legacySessionID?: string) {
93 if (!legacySessionID) return [`${dir}/terminal.v1`]
94 return [`${dir}/terminal/${legacySessionID}.v1`, `${dir}/terminal.v1`]
95}
96
97type TerminalSession = ReturnType<typeof createWorkspaceTerminalSession>
98

Callers 3

terminal.test.tsFile · 0.85
clearWorkspaceTerminalsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected