@yemi33/minions 0.1.862 → 0.1.864
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 +3 -1
- package/engine.js +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.864 (2026-04-11)
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
6
|
- optimistic running state on pipeline Run Now click
|
|
7
7
|
|
|
8
8
|
### Fixes
|
|
9
|
+
- poll for old process exit before steering resume (replaces fixed delay)
|
|
10
|
+
- add 3s delay before steering resume to let old process tree exit
|
|
9
11
|
- set steering state before killImmediate to prevent race
|
|
10
12
|
- pipeline race condition, delete refresh, abort error logging
|
|
11
13
|
- _continuePipeline now calls refresh() to update card list
|
package/engine.js
CHANGED
|
@@ -732,6 +732,17 @@ async function spawnAgent(dispatchItem, config) {
|
|
|
732
732
|
// Write status to live output so the UI shows the agent is resuming (not stuck)
|
|
733
733
|
try { fs.appendFileSync(liveOutputPath, `\n[steering] Resuming session with your message... (this may take 10-30s)\n`); } catch {}
|
|
734
734
|
|
|
735
|
+
// Wait for the old process tree to fully exit before resuming.
|
|
736
|
+
// taskkill /F /T returns before child processes release session locks.
|
|
737
|
+
// Poll until the PID is gone (max 10s, check every 500ms).
|
|
738
|
+
const oldPid = procInfo.proc?.pid;
|
|
739
|
+
if (oldPid) {
|
|
740
|
+
for (let i = 0; i < 20; i++) {
|
|
741
|
+
try { process.kill(oldPid, 0); } catch { break; } // throws if PID doesn't exist = dead
|
|
742
|
+
await new Promise(r => setTimeout(r, 500));
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
|
|
735
746
|
// Write new prompt with steering message
|
|
736
747
|
const steerPrompt = `Message from your human teammate:\n\n${steerMsg}\n\nRespond to this, then continue working on your current task.`;
|
|
737
748
|
const steerPromptPath = path.join(ENGINE_DIR, 'tmp', `prompt-steer-${safeId}.md`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.864",
|
|
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"
|