teapot-coding-agent 0.37.170 → 0.37.172

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.
@@ -1416,10 +1416,15 @@ export class Agent {
1416
1416
  else {
1417
1417
  this.messages.push({ role: "user", content: p.text });
1418
1418
  }
1419
- if (p.source === "user") {
1420
- const id = p.id ?? `u${Date.now().toString(36)}${Math.random().toString(36).slice(2, 6)}`;
1421
- this.undeliveredPrompts.push({ id, preview: p.text.slice(0, 80) });
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 = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teapot-coding-agent",
3
- "version": "0.37.170",
3
+ "version": "0.37.172",
4
4
  "description": "A lightweight, always-on multi-agent harness for AI coding agents",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-or-later",