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 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-19 05:00:21 +01:00
co-authored by Claude Opus 4.5
parent c058395c3e
commit a471920c58
+1 -1
View File
@@ -756,7 +756,7 @@ class ClaudemanApp {
});
// Track first session
if (i === 1) {
if (i === 0) {
firstSessionId = createData.session.id;
}