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
|
|
1304
|
-
//
|
|
1305
|
-
//
|
|
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
|
-
|
|
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