teapot-coding-agent 0.37.169 → 0.37.170

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.
@@ -241,8 +241,15 @@ export class Agent {
241
241
  if (idx < 0)
242
242
  return 0;
243
243
  const queuedAhead = idx;
244
- const turnRunning = this.status === "running" ? 1 : 0;
245
- return queuedAhead + (queuedAhead === 0 ? turnRunning : 0);
244
+ /**
245
+ * What BLOCKS dispatch, not just "is a turn running".
246
+ *
247
+ * MEASURED: during a compaction the status is `waiting`, and a compaction runs on the same chain, so a prompt
248
+ * enqueued then cannot start — but `ahead` said 0 (nothing ahead, no turn running) and the row showed a timestamp:
249
+ * "queuedのメッセージの1つ目が queued じゃなくて時刻が表示される". A parked tool call blocks the same way.
250
+ */
251
+ const blocked = this.status === "running" || this.status === "waiting" || this.parkedByTool;
252
+ return queuedAhead + (queuedAhead === 0 && blocked ? 1 : 0);
246
253
  }
247
254
  stopRequested = false;
248
255
  windDownRequested = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teapot-coding-agent",
3
- "version": "0.37.169",
3
+ "version": "0.37.170",
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",