MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / queueRunRequest

Function queueRunRequest

tools/claw-launcher-ui/server.mjs:2446–2456  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

2444}
2445
2446function queueRunRequest(request) {
2447 runQueue.push(request)
2448 syncQueuedState()
2449 persistRuntimeQueueStateSoon()
2450 updateState(draft => {
2451 draft.run.queue = state.run.queue
2452 draft.run.pendingApproval = state.run.pendingApproval
2453 })
2454 pushLog('ui', `已将任务加入等待队列:${previewPrompt(request.prompt, 60)}`, 'info')
2455 return summarizeQueuedRun(request)
2456}
2457
2458async function markPendingApproval(request) {
2459 pendingApprovalRequest = request

Callers 1

startClawPromptFunction · 0.85

Calls 7

syncQueuedStateFunction · 0.85
updateStateFunction · 0.85
pushLogFunction · 0.85
previewPromptFunction · 0.85
summarizeQueuedRunFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected