feat: show last message snippet in session list - #3
Merged
Conversation
Each session row now has a third line displaying the most recent human message text, giving a quick preview of where the conversation was left off without opening the right pane. - Session.LastMsg captured in readSession() while already scanning JSONL - renderSessionRow() adds a dim third line with the truncated snippet - listPageSize() updated to divisor 3 for correct scroll clamping Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…text - Expand capture from user-only to both user and assistant entries so the snippet reflects the most recent actual exchange - Skip text blocks starting with "[Request interrupted" which are injected system strings, not real conversation content Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4
Summary
[Request interrupted by user for tool use]Implementation
Session.LastMsg— new field populated inreadSession()while already scanning the full JSONL; no extra I/O"user"and"assistant"entries, keeping the last realtextblock foundrenderSessionRow()adds a dim third line; newlines collapsed to keep it single-row, truncated to column widthlistPageSize()divisor updated 2 → 3 so scroll clamping stays correct with taller rowsTest plan
[Request interrupted by user for tool use]entries are skipped; previous real message shown instead🤖 Generated with Claude Code