Skip to content

Fixed SaveAndSwitchDialog showing stale session name when new session has no JSONL yet - #52

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/save-session-name
Apr 16, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/save-session-name

Conversation

@oleg68

@oleg68 oleg68 commented Apr 16, 2026

Copy link
Copy Markdown
Collaborator

When a new session hasn't sent any prompts, it hasn't written a JSONL file yet. findMostRecent() was returning the previous session, causing the name field to be pre-filled with the old session's name and that session to be excluded from the Resume Specific table.

Fix: compare the most recent JSONL's lastAt timestamp against processStartedAt; if the JSONL predates the current process, treat it as stale (empty name, not excluded).

… has no JSONL yet

When a new session hasn't sent any prompts, it hasn't written a JSONL file yet.
findMostRecent() was returning the previous session, causing the name field to be
pre-filled with the old session's name and that session to be excluded from the
Resume Specific table.

Fix: compare the most recent JSONL's lastAt timestamp against processStartedAt;
if the JSONL predates the current process, treat it as stale (empty name, not excluded).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit ee001fe into nbplugins:main Apr 16, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/save-session-name branch April 16, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant