chore: only warn on empty sessions

This commit is contained in:
Jack Wotherspoon
2026-03-09 13:22:17 +01:00
parent 72068d40b6
commit 0d2ad092ec

View File

@@ -708,10 +708,9 @@ export async function main() {
} catch (error) {
if (
error instanceof SessionError &&
(error.code === 'NO_SESSIONS_FOUND' ||
error.code === 'INVALID_SESSION_IDENTIFIER')
error.code === 'NO_SESSIONS_FOUND'
) {
// No sessions to resume or invalid session ID — start a fresh session with a warning
// No sessions to resume — start a fresh session with a warning
startupWarnings.push({
id: 'resume-failure',
message: 'Could not resume session. Started a new session.',