teapot-coding-agent 0.37.187 → 0.37.188

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.
@@ -256,13 +256,17 @@ export class Agent {
256
256
  return 0;
257
257
  const queuedAhead = idx;
258
258
  /**
259
- * What BLOCKS dispatch, not just "is a turn running".
259
+ * "Queued" means ONE thing: the agent is generating a turn right now.
260
260
  *
261
- * MEASURED: during a compaction the status is `waiting`, and a compaction runs on the same chain, so a prompt
262
- * enqueued then cannot start — but `ahead` said 0 (nothing ahead, no turn running) and the row showed a timestamp:
263
- * "queuedのメッセージの1つ目が queued じゃなくて時刻が表示される". A parked tool call blocks the same way.
261
+ * The operator's contract, stated after the third round of this bug: `idle`, `waiting`, `error`, `needs_operator`,
262
+ * `stopped` — and `running` while it is NOT between LLM calls — all take the prompt immediately and must render as
263
+ * SETTLED; only `running` with a turn in flight makes it wait, and only then does the row say "queued…" and the badge
264
+ * count it.
265
+ *
266
+ * An earlier version also treated `waiting` (a compaction) and a parked tool as blocking, which made those states show
267
+ * "queued…" — and the operator's answer to that was the list above.
264
268
  */
265
- const blocked = this.status === "running" || this.status === "waiting" || this.parkedByTool;
269
+ const blocked = this.status === "running";
266
270
  return queuedAhead + (queuedAhead === 0 && blocked ? 1 : 0);
267
271
  }
268
272
  stopRequested = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teapot-coding-agent",
3
- "version": "0.37.187",
3
+ "version": "0.37.188",
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",