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

Function failed

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

Source from the content-addressed store, hash-verified

52 waiter.resolve(next)
53 },
54 failed(scope: ServerScope, directory: string, message: string) {
55 const id = key(scope, directory)
56 const next = { status: "failed", message } as const
57 state.set(id, next)
58 const waiter = waiters.get(id)
59 if (!waiter) return
60 waiters.delete(id)
61 waiter.resolve(next)
62 },
63 wait(scope: ServerScope, directory: string) {
64 const id = key(scope, directory)
65 const current = state.get(id)

Callers 1

InlineToolFunction · 0.50

Calls 4

keyFunction · 0.70
getMethod · 0.65
setMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected