From a471920c58a1f167a57ea18b08c373e2067cd78a Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 19 Jan 2026 05:00:21 +0100 Subject: [PATCH] fix: auto-switch to new session now works correctly Fixed bug where firstSessionId was set when i===1 instead of i===0, causing it to never be set when creating a single session. Co-Authored-By: Claude Opus 4.5 --- src/web/public/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/public/app.js b/src/web/public/app.js index 5d9bfbf9..c382129e 100644 --- a/src/web/public/app.js +++ b/src/web/public/app.js @@ -756,7 +756,7 @@ class ClaudemanApp { }); // Track first session - if (i === 1) { + if (i === 0) { firstSessionId = createData.session.id; }