@delt/claude-alarm 0.6.22 → 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.
@@ -1153,6 +1153,7 @@
1153
1153
  renderSessions();
1154
1154
  renderMessages();
1155
1155
  updateImageUI();
1156
+ $('#msgInput').focus();
1156
1157
  }
1157
1158
 
1158
1159
  function updateImageUI() {
@@ -1202,7 +1203,11 @@
1202
1203
  el.innerHTML += '<div class="typing-indicator active"><div class="typing-dots"><span></span><span></span><span></span></div></div>';
1203
1204
  }
1204
1205
  renderPermissionBar();
1205
- 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);
1206
1211
  }
1207
1212
 
1208
1213
  function renderNotifications() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delt/claude-alarm",
3
- "version": "0.6.22",
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",
@@ -1153,6 +1153,7 @@
1153
1153
  renderSessions();
1154
1154
  renderMessages();
1155
1155
  updateImageUI();
1156
+ $('#msgInput').focus();
1156
1157
  }
1157
1158
 
1158
1159
  function updateImageUI() {
@@ -1202,7 +1203,11 @@
1202
1203
  el.innerHTML += '<div class="typing-indicator active"><div class="typing-dots"><span></span><span></span><span></span></div></div>';
1203
1204
  }
1204
1205
  renderPermissionBar();
1205
- 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);
1206
1211
  }
1207
1212
 
1208
1213
  function renderNotifications() {