@yemi33/minions 0.1.2087 → 0.1.2089

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.
@@ -127,6 +127,8 @@ async function refreshLiveOutput() {
127
127
  const el = document.getElementById('live-messages');
128
128
  if (el) {
129
129
  const wasAtBottom = el.scrollHeight - el.scrollTop - el.clientHeight < 150;
130
+ const savedScrollTop = el.scrollTop;
131
+ const savedScrollLeft = el.scrollLeft;
130
132
  const incrementalSafe = _currentAgentRuntime() !== 'copilot';
131
133
  // Incremental render: only parse new content if text is an extension of previous
132
134
  if (incrementalSafe && _lastRenderedText && text.length > _lastRenderedText.length && text.startsWith(_lastRenderedText.slice(0, 200))) {
@@ -137,6 +139,10 @@ async function refreshLiveOutput() {
137
139
  }
138
140
  _lastRenderedText = text;
139
141
  if (wasAtBottom) el.scrollTop = el.scrollHeight;
142
+ else {
143
+ el.scrollTop = savedScrollTop;
144
+ el.scrollLeft = savedScrollLeft;
145
+ }
140
146
  }
141
147
  } catch (e) { console.error('live-stream reload:', e.message); }
142
148
  }