@yemi33/minions 0.1.2032 → 0.1.2033
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/dashboard/js/refresh.js +11 -2
- package/package.json +1 -1
package/dashboard/js/refresh.js
CHANGED
|
@@ -121,12 +121,21 @@ function _formatCcDrawerLabel(autoMode) {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
function _processStatusUpdate(data) {
|
|
124
|
-
// Detect fresh install — clear stale browser state
|
|
124
|
+
// Detect fresh install — clear stale browser state AND reload so module-scoped
|
|
125
|
+
// JS caches (_sectionCache, _prevCounts, _kbRefreshCount, _managedProcessesLastItems,
|
|
126
|
+
// _pipelinePollHash, _meetingPollHash, etc.) reinitialise against the new install's
|
|
127
|
+
// data shape. localStorage.clear() alone leaves those caches stale after a
|
|
128
|
+
// MINIONS_HOME swap that doesn't restart the dashboard (F11 / W-mpgcijjo000ce878).
|
|
125
129
|
if (data.installId) {
|
|
126
130
|
const prev = localStorage.getItem('minions-install-id');
|
|
127
131
|
if (prev && prev !== data.installId) {
|
|
128
132
|
localStorage.clear();
|
|
129
|
-
|
|
133
|
+
// Write the new install-id BEFORE reload — the post-reload poll must see
|
|
134
|
+
// a matching id so it stops looping. clear() above wiped it, so set it again.
|
|
135
|
+
localStorage.setItem('minions-install-id', data.installId);
|
|
136
|
+
console.log('Minions: fresh install detected, reloading to reset module caches');
|
|
137
|
+
location.reload();
|
|
138
|
+
return;
|
|
130
139
|
}
|
|
131
140
|
localStorage.setItem('minions-install-id', data.installId);
|
|
132
141
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2033",
|
|
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"
|