@yemi33/minions 0.1.760 → 0.1.762

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.762 (2026-04-10)
4
+
5
+ ### Fixes
6
+ - clean handoff between restore and original stream intervals
7
+ - prevent competing thinking intervals on tab switch
8
+
3
9
  ## 0.1.760 (2026-04-10)
4
10
 
5
11
  ### Features
@@ -162,9 +162,10 @@ function ccSwitchTab(id) {
162
162
  var restoreDiv = el.lastElementChild;
163
163
  restoreDiv.id = 'cc-restore-thinking';
164
164
  el.scrollTop = el.scrollHeight;
165
+ // Live update — stops when tab switches away or request completes
165
166
  var restoreInterval = setInterval(function() {
166
167
  var re = document.getElementById('cc-restore-thinking');
167
- if (!re || !tab._sending) { clearInterval(restoreInterval); if (re) re.remove(); return; }
168
+ if (!re || !tab._sending || _ccActiveTabId !== tab.id) { clearInterval(restoreInterval); return; }
168
169
  re.innerHTML = _restoreStreamHtml();
169
170
  if (el.scrollHeight - el.scrollTop - el.clientHeight < 150) el.scrollTop = el.scrollHeight;
170
171
  }, 1000);
@@ -484,6 +485,13 @@ async function _ccDoSend(message, skipUserMsg) {
484
485
  '<button onclick="ccAbort()" style="font-size:9px;padding:2px 8px;background:var(--surface2);border:1px solid var(--border);border-radius:4px;color:var(--red);cursor:pointer;margin-left:4px">Stop</button></div>';
485
486
  }
486
487
  function updateStreamDiv() {
488
+ // Skip DOM updates if user switched to a different tab (restore interval handles that tab)
489
+ if (_ccActiveTabId !== activeTabId) return;
490
+ // Re-acquire streamDiv if it was detached (tab switch and back)
491
+ if (!streamDiv.parentNode) {
492
+ var re = document.getElementById('cc-restore-thinking');
493
+ if (re) { streamDiv = re; re.removeAttribute('id'); } else return;
494
+ }
487
495
  var html = '';
488
496
  if (toolsUsed.length > 0) {
489
497
  html += '<div style="margin-bottom:6px">';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.760",
3
+ "version": "0.1.762",
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"