teapot-coding-agent 0.37.171 → 0.37.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/agent/agent.js
CHANGED
|
@@ -1416,10 +1416,15 @@ export class Agent {
|
|
|
1416
1416
|
else {
|
|
1417
1417
|
this.messages.push({ role: "user", content: p.text });
|
|
1418
1418
|
}
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1419
|
+
/**
|
|
1420
|
+
* EVERY prompt that reaches the model gets a delivery note, harness ones included.
|
|
1421
|
+
*
|
|
1422
|
+
* The note is how the timeline knows a prompt stopped WAITING — it is the only "it ran" signal the client has. Only
|
|
1423
|
+
* user prompts produced one, so a harness prompt (queued behind a turn, with `ahead > 0` recorded at enqueue) kept
|
|
1424
|
+
* its "queued…" label for ever: "tasks updateのハーネスからのメッセージが一生queuedになってるバグ".
|
|
1425
|
+
*/
|
|
1426
|
+
const noteId = p.id ?? `h${Date.now().toString(36)}${Math.random().toString(36).slice(2, 6)}`;
|
|
1427
|
+
this.undeliveredPrompts.push({ id: noteId, preview: p.text.slice(0, 80) });
|
|
1423
1428
|
}
|
|
1424
1429
|
}
|
|
1425
1430
|
deliveredPrompts = [];
|