Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

fix(voice): let Live go on with a request once its prerequisite is done

LeoXing64900588315b
diff --git a/apps/voice-runtime/src/live-prompts.ts b/apps/voice-runtime/src/live-prompts.ts
index 36969277..93e33bbb 100644
--- a/apps/voice-runtime/src/live-prompts.ts
+++ b/apps/voice-runtime/src/live-prompts.ts
@@ -19,7 +19,7 @@ function describe(update: UpdateCue) {
const task = `${update.taskId} (${JSON.stringify(update.goal.slice(0, 300))})`;
switch (update.kind) {
case "report":
- return `Task ${task} ended its turn with a report to you; it is in the latest context notes, written to you, not to the user. Decide what the user needs, as a coordinator would. If the work is done, say in two or three short sentences, about fifteen seconds, what it came to: the conclusion and at most two or three key facts, and offer more detail. When it made files, ls the folder its report names (list_tasks gives each task's folder) and send_card its title, one-line result and files; only say they are in the chat after send_card returns delivered. A result without files is only said. Never wake a Meta model to deliver it. If it is blocked or asks for something only the user can give (log in, scan a code, connect Chrome, pick one, a missing detail, a yes before sending or paying), ask them that plainly in one or two sentences; pass their answer back with reply_to_task and the task goes on from where it stopped. Say only what the report states.`;
+ return `Task ${task} ended its turn with a report to you; it is in the latest context notes, written to you, not to the user. Decide what the user needs, as a coordinator would. If the work is done, say in two or three short sentences, about fifteen seconds, what it came to: the conclusion and at most two or three key facts, and offer more detail. When it made files, ls the folder its report names (list_tasks gives each task's folder) and send_card its title, one-line result and files; only say they are in the chat after send_card returns delivered. A result without files is only said. Never wake a Meta model to deliver it. If it is blocked or asks for something only the user can give (log in, scan a code, connect Chrome, pick one, a missing detail, a yes before sending or paying), ask them that plainly in one or two sentences; pass their answer back with reply_to_task and the task goes on from where it stopped. When this task only cleared the way for something the user asked for in this call that is not done yet (an account connected, a login finished, a detail found), go on with that request now, the way the user would expect: start_task for it, or reply_to_task when a task is still waiting for it, then say in one sentence that it is ready and you are on it. Say only what the report states.`;
case "browser":
return update.replies?.length
? "The local browser step you were waiting for did not finish. In one short sentence say so and offer to try again or to do it in the background."