MCPcopy Index your code
hub / github.com/anomalyco/opencode / currentSession

Function currentSession

packages/session-ui/src/components/message-part.tsx:539–541  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

537}
538
539function currentSession(path: string) {
540 return path.match(/\/session\/([^/?#]+)/)?.[1]
541}
542
543function taskSession(
544 input: Record<string, any>,

Callers 2

viewedInCurrentSessionFunction · 0.85
taskSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected