Skip to content

Commit 013e4d3

Browse files
author
techartdev
committed
Update version to 0.1.53, fix chat scrolling issues, and prevent scroll anchoring artifacts
1 parent 99aaef0 commit 013e4d3

4 files changed

Lines changed: 15 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to the OpenClaw Home Assistant Integration will be documented in this file.
44

5+
## [0.1.53] - 2026-02-23
6+
7+
### Fixed
8+
- Fixed chat scrolling UP to an older message instead of staying at the bottom when a bot reply arrives.
9+
- Eliminated requestAnimationFrame race condition in `_scrollToBottom()` that caused `_autoScrollPinned` to be incorrectly set to false when rapid re-renders overlapped.
10+
- Added `overflow-anchor: none` to the messages container to prevent browser scroll anchoring artifacts after innerHTML replacement.
11+
512
## [0.1.52] - 2026-02-23
613

714
### Added

custom_components/openclaw/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
# URL at which the card JS is served (registered via register_static_path)
9494
_CARD_STATIC_URL = f"/openclaw/{_CARD_FILENAME}"
9595
# Versioned URL used for Lovelace resource registration to avoid stale browser cache
96-
_CARD_URL = f"{_CARD_STATIC_URL}?v=0.1.52"
96+
_CARD_URL = f"{_CARD_STATIC_URL}?v=0.1.53"
9797

9898
OpenClawConfigEntry = ConfigEntry
9999

custom_components/openclaw/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"iot_class": "local_polling",
99
"issue_tracker": "https://github.com/techartdev/OpenClawHomeAssistant/issues",
1010
"requirements": [],
11-
"version": "0.1.52",
11+
"version": "0.1.53",
1212
"dependencies": ["conversation"],
1313
"after_dependencies": ["hassio", "lovelace"]
1414
}

custom_components/openclaw/www/openclaw-chat-card.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* + subscribes to openclaw_message_received events.
1414
*/
1515

16-
const CARD_VERSION = "0.3.10";
16+
const CARD_VERSION = "0.3.11";
1717

1818
// Max time (ms) to show the thinking indicator before falling back to an error
1919
const THINKING_TIMEOUT_MS = 120_000;
@@ -1782,12 +1782,10 @@ class OpenClawChatCard extends HTMLElement {
17821782
}
17831783

17841784
_scrollToBottom(force = false) {
1785-
requestAnimationFrame(() => {
1786-
const container = this.shadowRoot?.querySelector(".messages");
1787-
if (container && (force || this._autoScrollPinned)) {
1788-
container.scrollTop = container.scrollHeight;
1789-
}
1790-
});
1785+
const container = this.shadowRoot?.querySelector(".messages");
1786+
if (container && (force || this._autoScrollPinned)) {
1787+
container.scrollTop = container.scrollHeight;
1788+
}
17911789
}
17921790

17931791
_formatTime(isoString) {
@@ -1909,6 +1907,7 @@ class OpenClawChatCard extends HTMLElement {
19091907
.messages {
19101908
height: ${config.height || "500px"};
19111909
overflow-y: auto;
1910+
overflow-anchor: none;
19121911
padding: 12px 16px;
19131912
display: flex;
19141913
flex-direction: column;

0 commit comments

Comments
 (0)