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

Function syncQueue

packages/opencode/src/cli/cmd/run/runtime.queue.ts:74–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73
74 const syncQueue = () => {
75 const queue = state.queue.length
76 emit({ type: "queue", queue }, { queue })
77 emit(
78 {
79 type: "queued.prompts",
80 prompts: [...state.queued],
81 },
82 { queued: state.queued.length },
83 )
84 }
85
86 const removeLocalQueued = (queued: FooterQueuedPrompt) => {
87 if (!state.queued.includes(queued)) return

Callers 3

removeLocalQueuedFunction · 0.85
drainFunction · 0.85
submitFunction · 0.85

Calls 1

emitFunction · 0.70

Tested by

no test coverage detected