@commonlyai/cli 0.1.135 → 0.1.136
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/package.json +1 -1
- package/src/commands/agent.js +10 -1
package/package.json
CHANGED
package/src/commands/agent.js
CHANGED
|
@@ -2457,7 +2457,16 @@ export const performRun = ({
|
|
|
2457
2457
|
entry.result?.outcome === 'posted'
|
|
2458
2458
|
|| (entry.result?.outcome === 'no_action' && !entry.result?.reason)
|
|
2459
2459
|
));
|
|
2460
|
-
if (batchSpawned)
|
|
2460
|
+
if (batchSpawned) {
|
|
2461
|
+
consecutiveSpawnFailures = 0;
|
|
2462
|
+
// A turn is exactly when events pile up: whoever typed while the
|
|
2463
|
+
// adapter was running is already waiting. Sleeping the interval on
|
|
2464
|
+
// top of the turn charges them for it twice (TASK-343). Only a
|
|
2465
|
+
// batch that actually spawned skips the wait; an idle poll and a
|
|
2466
|
+
// batch that spawned nothing keep the interval, so this cannot
|
|
2467
|
+
// become a spin.
|
|
2468
|
+
nextPollDelayMs = 0;
|
|
2469
|
+
}
|
|
2461
2470
|
for (const entry of batch.entries) {
|
|
2462
2471
|
const event = entry.event;
|
|
2463
2472
|
// No result: an item a failure during refusal isolation never
|