From caadcf098fa2ef868b3b2050c2e929ba4411b48b Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Fri, 9 Oct 2026 21:17:17 -0700 Subject: [PATCH] Whistlegraph worker: the model loop wants its token as a function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First live turn from the worker: wgLodaf v1 → v2 in 26 s, committed from the server with the phone out of the loop. --- lith/whistlegraph-worker.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lith/whistlegraph-worker.mjs b/lith/whistlegraph-worker.mjs index 33bbd50d24..a2e4ca3750 100644 --- a/lith/whistlegraph-worker.mjs +++ b/lith/whistlegraph-worker.mjs @@ -55,7 +55,7 @@ export async function runTurn({job, thread, onCheckpoint = () => {}, signal}) { const generate = async (task, repair) => { const settings = generationProfile('', {repair, model: job.model || '', image: !!job.request.drawing}); server = new AcServer({cwd, piece: {file, checkpoint: async () => { source = readFileSync(file, 'utf8'); const now = Date.now(); if (now - checkpointAt > 5000) { checkpointAt = now; await onCheckpoint(source); } }}, - token: 'worker', fetch: workerFetch(job.owner, settings), site: SITE, preview: false, frameCapture: false, model: settings.model, + token: async () => 'worker', fetch: workerFetch(job.owner, settings), site: SITE, preview: false, frameCapture: false, model: settings.model, rounds: settings.rounds, outputContinuations: settings.outputContinuations, reasoning: settings.reasoning, thinking: settings.thinking, developerInstructions: GENERATION_INSTRUCTIONS + '\n' + WARE_INSTRUCTIONS}); completed = false; error = ''; -- 2.51.2