Update version to 0.1.37 and improve chat session handling with session_id in payloads
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
|
||||
All notable changes to the OpenClaw Home Assistant Integration will be documented in this file.
|
||||
|
||||
## [0.1.37] - 2026-02-20
|
||||
|
||||
### Fixed
|
||||
- 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.
|
||||
- Reduces cases where the gateway treats each message as a new conversation when custom headers are ignored upstream.
|
||||
|
||||
## [0.1.36] - 2026-02-20
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -78,7 +78,7 @@ _CARD_PATH = Path(__file__).parent / "www" / _CARD_FILENAME
|
||||
# URL at which the card JS is served (registered via register_static_path)
|
||||
_CARD_STATIC_URL = f"/openclaw/{_CARD_FILENAME}"
|
||||
# Versioned URL used for Lovelace resource registration to avoid stale browser cache
|
||||
_CARD_URL = f"{_CARD_STATIC_URL}?v=0.1.36"
|
||||
_CARD_URL = f"{_CARD_STATIC_URL}?v=0.1.37"
|
||||
|
||||
OpenClawConfigEntry = ConfigEntry
|
||||
|
||||
|
||||
Binary file not shown.
@@ -191,6 +191,8 @@ class OpenClawApiClient:
|
||||
"messages": messages,
|
||||
"stream": False,
|
||||
}
|
||||
if session_id:
|
||||
payload["session_id"] = session_id
|
||||
if model:
|
||||
payload["model"] = model
|
||||
|
||||
@@ -249,6 +251,8 @@ class OpenClawApiClient:
|
||||
"messages": messages,
|
||||
"stream": True,
|
||||
}
|
||||
if session_id:
|
||||
payload["session_id"] = session_id
|
||||
if model:
|
||||
payload["model"] = model
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"iot_class": "local_polling",
|
||||
"issue_tracker": "https://github.com/techartdev/OpenClawHomeAssistant/issues",
|
||||
"requirements": [],
|
||||
"version": "0.1.36",
|
||||
"version": "0.1.37",
|
||||
"dependencies": ["conversation"],
|
||||
"after_dependencies": ["hassio", "lovelace"]
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
(async () => {
|
||||
try {
|
||||
if (!customElements.get("openclaw-chat-card")) {
|
||||
const src = "/openclaw/openclaw-chat-card.js?v=0.1.36";
|
||||
const src = "/openclaw/openclaw-chat-card.js?v=0.1.37";
|
||||
console.info("OpenClaw loader importing", src);
|
||||
await import(src);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user