Skip to content

fix: trigger preview load after session deletion - #2

Merged
alexmt merged 1 commit into
mainfrom
fix/preview-blank-after-delete
Apr 11, 2026
Merged

fix: trigger preview load after session deletion#2
alexmt merged 1 commit into
mainfrom
fix/preview-blank-after-delete

Conversation

@alexmt

@alexmt alexmt commented Apr 11, 2026

Copy link
Copy Markdown
Owner

Summary

Root Cause

handleDeleted() cleared m.preview / m.previewID after adjusting the cursor, but never issued a loadPreview command for the newly selected session. One call to triggerPreview() at the sessionDeletedMsg handler fixes it.

Test plan

  • Delete a middle session — right pane loads the next session's preview
  • Delete the last session in the list — right pane loads the previous session's preview
  • Delete the only remaining session — right pane stays empty (no crash)

🤖 Generated with Claude Code

After deleting a session, the cursor auto-selects the next session but
triggerPreview() was never called, leaving the right pane blank.

Fixes #1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@alexmt
alexmt merged commit 975e95e into main Apr 11, 2026
1 check passed
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.

Bug: right pane blank after deleting a session

1 participant