teapot-coding-agent 0.37.169 → 0.37.171
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
|
@@ -241,8 +241,15 @@ export class Agent {
|
|
|
241
241
|
if (idx < 0)
|
|
242
242
|
return 0;
|
|
243
243
|
const queuedAhead = idx;
|
|
244
|
-
|
|
245
|
-
|
|
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;
|