Skip to content

Commit 9ed13e4

Browse files
author
techartdev
committed
Update version to 0.1.37 and improve chat session handling with session_id in payloads
1 parent bfd973b commit 9ed13e4

6 files changed

Lines changed: 13 additions & 3 deletions

File tree

CHANGELOG.md

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

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

5+
## [0.1.37] - 2026-02-20
6+
7+
### Fixed
8+
- Improved conversation continuity by sending `session_id` in chat completion JSON payloads (in addition to `X-Session-Id` header), for both regular and streaming requests.
9+
- Reduces cases where the gateway treats each message as a new conversation when custom headers are ignored upstream.
10+
511
## [0.1.36] - 2026-02-20
612

713
### Fixed

custom_components/openclaw/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
# URL at which the card JS is served (registered via register_static_path)
7979
_CARD_STATIC_URL = f"/openclaw/{_CARD_FILENAME}"
8080
# Versioned URL used for Lovelace resource registration to avoid stale browser cache
81-
_CARD_URL = f"{_CARD_STATIC_URL}?v=0.1.36"
81+
_CARD_URL = f"{_CARD_STATIC_URL}?v=0.1.37"
8282

8383
OpenClawConfigEntry = ConfigEntry
8484

3.14 KB
Binary file not shown.

custom_components/openclaw/api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ async def async_send_message(
191191
"messages": messages,
192192
"stream": False,
193193
}
194+
if session_id:
195+
payload["session_id"] = session_id
194196
if model:
195197
payload["model"] = model
196198

@@ -249,6 +251,8 @@ async def async_stream_message(
249251
"messages": messages,
250252
"stream": True,
251253
}
254+
if session_id:
255+
payload["session_id"] = session_id
252256
if model:
253257
payload["model"] = model
254258

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.36",
11+
"version": "0.1.37",
1212
"dependencies": ["conversation"],
1313
"after_dependencies": ["hassio", "lovelace"]
1414
}

www/openclaw-chat-card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(async () => {
22
try {
33
if (!customElements.get("openclaw-chat-card")) {
4-
const src = "/openclaw/openclaw-chat-card.js?v=0.1.36";
4+
const src = "/openclaw/openclaw-chat-card.js?v=0.1.37";
55
console.info("OpenClaw loader importing", src);
66
await import(src);
77
}

0 commit comments

Comments
 (0)