clay-server 4.0.0-beta.5 → 4.0.0-beta.6

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.
@@ -1300,10 +1300,10 @@ export function processMessage(msg) {
1300
1300
  appendDelta((msg.text || "Authentication required.") + "\n");
1301
1301
  setStatus("connected");
1302
1302
  if (!store.get('loopActive')) enableMainInput();
1303
- // Open the login flow for this vendor. The server keeps exactly one
1304
- // login terminal per vendor, so repeat auth_required events (other
1305
- // sessions, split panes, a 401 retry burst) do not stack up.
1306
- autoStartLoginIfNeeded(msg);
1303
+ // Open the login flow only for a live auth failure. Older Clay
1304
+ // versions recorded this transient event in session history; replaying
1305
+ // one must not reopen a login terminal after the user signed in.
1306
+ if (!store.get('replayingHistory')) autoStartLoginIfNeeded(msg);
1307
1307
  break;
1308
1308
 
1309
1309
  case "vendor_login_ready":
@@ -70,7 +70,10 @@ function attachMessageProcessor(ctx) {
70
70
  var authTitle = ((vendorInfo && vendorInfo.displayName) || "Claude Code") + " is not logged in.";
71
71
  var loginCommand = (vendorInfo && vendorInfo.loginCommand) || "claude login";
72
72
  var _nmLogin = getNotificationsModule();
73
- sendAndRecord(session, {
73
+ // Authentication recovery is transient UI state, not transcript content.
74
+ // Recording it makes history replay look like a fresh auth failure and
75
+ // re-opens the login terminal after a successful sign-in.
76
+ sendToSession(session, {
74
77
  type: "auth_required",
75
78
  text: authTitle,
76
79
  vendor: session.vendor || "claude",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "4.0.0-beta.5",
3
+ "version": "4.0.0-beta.6",
4
4
  "description": "Self-hosted team workspace for Claude Code and Codex. Multi-user, browser-based, with persistent AI mates.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",