mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 15:10:59 -07:00
chore: only warn on empty sessions
This commit is contained in:
@@ -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.',
|
||||
|
||||
Reference in New Issue
Block a user