@delt/claude-alarm 0.6.23 → 0.6.24

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.
@@ -1203,7 +1203,11 @@
1203
1203
  el.innerHTML += '<div class="typing-indicator active"><div class="typing-dots"><span></span><span></span><span></span></div></div>';
1204
1204
  }
1205
1205
  renderPermissionBar();
1206
- setTimeout(() => { el.scrollTop = el.scrollHeight; }, 0);
1206
+ // Only auto-scroll if user is near the bottom (within 150px)
1207
+ setTimeout(() => {
1208
+ const gap = el.scrollHeight - el.scrollTop - el.clientHeight;
1209
+ if (gap < 150) el.scrollTop = el.scrollHeight;
1210
+ }, 0);
1207
1211
  }
1208
1212
 
1209
1213
  function renderNotifications() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delt/claude-alarm",
3
- "version": "0.6.23",
3
+ "version": "0.6.24",
4
4
  "description": "Monitor and get notifications from multiple Claude Code sessions via MCP Channels",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1203,7 +1203,11 @@
1203
1203
  el.innerHTML += '<div class="typing-indicator active"><div class="typing-dots"><span></span><span></span><span></span></div></div>';
1204
1204
  }
1205
1205
  renderPermissionBar();
1206
- setTimeout(() => { el.scrollTop = el.scrollHeight; }, 0);
1206
+ // Only auto-scroll if user is near the bottom (within 150px)
1207
+ setTimeout(() => {
1208
+ const gap = el.scrollHeight - el.scrollTop - el.clientHeight;
1209
+ if (gap < 150) el.scrollTop = el.scrollHeight;
1210
+ }, 0);
1207
1211
  }
1208
1212
 
1209
1213
  function renderNotifications() {