clay-server 2.22.0 → 2.22.1-beta.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 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
- var isSessionNotFound = qerrLower.indexOf("no conversation found") !== -1
994
- || qerrLower.indexOf("session not found") !== -1;
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "2.22.0",
3
+ "version": "2.22.1-beta.1",
4
4
  "description": "Self-hosted Claude Code in your browser. Multi-session, multi-user, push notifications.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",