@yemi33/minions 0.1.667 → 0.1.668

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.668 (2026-04-09)
4
+
5
+ ### Fixes
6
+ - reduce Bash blocking grace and errored task dedup window (closes #593) (#630)
7
+
3
8
  ## 0.1.667 (2026-04-09)
4
9
 
5
10
  ### Features
@@ -95,11 +95,13 @@ function isAlreadyDispatched(key) {
95
95
  // Check pending and active
96
96
  const inFlight = [...dispatch.pending, ...(dispatch.active || [])];
97
97
  if (inFlight.some(d => d.meta?.dispatchKey === key)) return true;
98
- // Also check recently completed (last hour) to prevent re-dispatch
99
- const oneHourAgo = Date.now() - 3600000;
100
- const recentCompleted = (dispatch.completed || []).filter(d =>
101
- d.completed_at && new Date(d.completed_at).getTime() > oneHourAgo
102
- );
98
+ // Also check recently completed — shorter window for errors (15min) vs success (1hr)
99
+ const now = Date.now();
100
+ const recentCompleted = (dispatch.completed || []).filter(d => {
101
+ if (!d.completed_at) return false;
102
+ const windowMs = d.result === 'error' ? 900000 : 3600000; // 15 min for errors, 1 hr for success
103
+ return now - new Date(d.completed_at).getTime() < windowMs;
104
+ });
103
105
  return recentCompleted.some(d => d.meta?.dispatchKey === key);
104
106
  }
105
107
 
package/engine/timeout.js CHANGED
@@ -187,8 +187,8 @@ function checkTimeouts(config) {
187
187
  }
188
188
  // Bash tool call — may be running a long build/install with no stdout
189
189
  if (name === 'Bash') {
190
- // Use explicit timeout if set, otherwise default to 10min for any Bash call
191
- const bashTimeout = input.timeout || 600000;
190
+ // Use explicit timeout if set, otherwise match Claude Code's actual Bash default (120s)
191
+ const bashTimeout = input.timeout || 120000;
192
192
  blockingTimeout = Math.max(heartbeatTimeout, bashTimeout + 60000);
193
193
  isBlocking = true;
194
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.667",
3
+ "version": "0.1.668",
4
4
  "description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
5
5
  "bin": {
6
6
  "minions": "bin/minions.js"