clay-server 2.22.0 → 2.22.1
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.
- package/lib/sdk-bridge.js +2 -2
- package/package.json +1 -1
package/lib/sdk-bridge.js
CHANGED
|
@@ -990,8 +990,8 @@ function createSDKBridge(opts) {
|
|
|
990
990
|
case "query_error": {
|
|
991
991
|
// Check session-not-found before isProcessing gate (it can arrive after processing is cleared)
|
|
992
992
|
var qerrLower = (msg.error || "").toLowerCase();
|
|
993
|
-
|
|
994
|
-
|
|
993
|
+
// Only match the exact SDK error, not generic worker stderr
|
|
994
|
+
var isSessionNotFound = qerrLower.indexOf("no conversation found with session id") !== -1;
|
|
995
995
|
if (isSessionNotFound) {
|
|
996
996
|
// Pre-copy should have handled this. Clear stale cliSessionId
|
|
997
997
|
// so next message starts a fresh conversation in the same UI session.
|