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

Function sessionKey

packages/app/src/context/comments.tsx:27–29  ·  view source on GitHub ↗
(dir: string, id: string | undefined)

Source from the content-addressed store, hash-verified

25const MAX_COMMENT_SESSIONS = 20
26
27function sessionKey(dir: string, id: string | undefined) {
28 return `${dir}\n${id ?? WORKSPACE_KEY}`
29}
30
31function decodeSessionKey(key: string) {
32 const split = key.lastIndexOf("\n")

Callers 8

PageFunction · 0.85
FileTabContentFunction · 0.85
createSessionOwnershipFunction · 0.85
transitionFunction · 0.85
SessionSidePanelFunction · 0.85
MessageTimelineFunction · 0.85
maybeAnchorBottomFunction · 0.85
loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected