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

Function decodeSessionKey

packages/app/src/context/comments.tsx:31–38  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

29}
30
31function decodeSessionKey(key: string) {
32 const split = key.lastIndexOf("\n")
33 if (split < 0) return { dir: key, id: WORKSPACE_KEY }
34 return {
35 dir: key.slice(0, split),
36 id: key.slice(split + 1),
37 }
38}
39
40type CommentStore = {
41 comments: Record<string, LineComment[]>

Callers 1

comments.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected