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.
package/dist/agent/agent.js
CHANGED
|
@@ -256,13 +256,17 @@ export class Agent {
|
|
|
256
256
|
return 0;
|
|
257
257
|
const queuedAhead = idx;
|
|
258
258
|
/**
|
|
259
|
-
*
|
|
259
|
+
* "Queued" means ONE thing: the agent is generating a turn right now.
|
|
260
260
|
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
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"
|
|
269
|
+
const blocked = this.status === "running";
|
|
266
270
|
return queuedAhead + (queuedAhead === 0 && blocked ? 1 : 0);
|
|
267
271
|
}
|
|
268
272
|
stopRequested = false;
|