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

Function pending

packages/app/src/utils/worktree.ts:39–44  ·  view source on GitHub ↗
(scope: ServerScope, directory: string)

Source from the content-addressed store, hash-verified

37 return state.get(key(scope, directory))
38 },
39 pending(scope: ServerScope, directory: string) {
40 const id = key(scope, directory)
41 const current = state.get(id)
42 if (current && current.status !== "pending") return
43 state.set(id, { status: "pending" })
44 },
45 ready(scope: ServerScope, directory: string) {
46 const id = key(scope, directory)
47 const next = { status: "ready" } as const

Callers 2

SessionFunction · 0.50
WhichKeyPanelFunction · 0.50

Calls 3

keyFunction · 0.70
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected