@yemi33/minions 0.1.1818 → 0.1.1819

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.1819 (2026-05-09)
4
+
5
+ ### Fixes
6
+ - stop visibility=hidden beacons from racing pagehide and resurrecting closed-tab entries in dashboard-browser.json (#2275)
7
+
3
8
  ## 0.1.1818 (2026-05-09)
4
9
 
5
10
  ### Fixes
@@ -127,7 +127,14 @@ function _sendDashboardPresence(closed) {
127
127
 
128
128
  window.addEventListener('pagehide', function() { _sendDashboardPresence(true); });
129
129
  window.addEventListener('beforeunload', function() { _sendDashboardPresence(true); });
130
- document.addEventListener('visibilitychange', function() { _sendDashboardPresence(false); });
130
+ // Only ping on becoming visible — hidden->presence beacons race the pagehide close
131
+ // beacon (both fire on tab close in quick succession via sendBeacon, ordering not
132
+ // guaranteed) and can resurrect a just-deleted entry with visibility:"hidden".
133
+ // Hidden tabs naturally expire via the 45s presence window; foreground returns
134
+ // re-fire visibilitychange so we still get a fresh heartbeat when the user comes back.
135
+ document.addEventListener('visibilitychange', function() {
136
+ if (document.visibilityState === 'visible') _sendDashboardPresence(false);
137
+ });
131
138
 
132
139
  function rerenderPrdFromCache() {
133
140
  if (!window._lastStatus || !window._lastStatus.prdProgress) return;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "runtime": "copilot",
3
3
  "models": null,
4
- "cachedAt": "2026-05-09T15:59:07.682Z"
4
+ "cachedAt": "2026-05-09T17:41:50.994Z"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.1818",
3
+ "version": "0.1.1819",
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"