feat: Add preview panel to session selector (cn ls / /resume)#8231
Merged
feat: Add preview panel to session selector (cn ls / /resume)#8231
Conversation
- Created SessionPreview component to display chat history - Updated SessionSelector to show two-column layout with preview on right - Preview shows first 10 messages with truncation for long content - Preview only displays when terminal width > 100 columns - Automatically loads and displays session history as cursor moves Fixes CON-3892 Generated with Continue(https://continue.dev) Co-Authored-By: Continue <[email protected]> Co-authored-by: Username <[email protected]>
- Changed list width from 45% to 30% of terminal width - Preview panel now takes up 70% of the right side - Provides more space for chat history preview Co-Authored-By: Continue <[email protected]> Co-authored-by: Username <[email protected]>
e90365b to
1a7d07b
Compare
Contributor
Contributor
Contributor
|
Instead of an emoji can we just do ASCII symbol, eg |
Contributor
|
🎉 This PR is included in version 1.27.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Contributor
|
🎉 This PR is included in version 1.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Contributor
|
🎉 This PR is included in version 1.30.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Contributor
|
🎉 This PR is included in version 1.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.



Description
This PR adds a preview panel to the session selector that displays chat history when navigating through sessions using
cn lsor the/resumeslash command.Screen.Recording.2025-10-14.at.12.16.04.PM.mov
Changes
SessionPreviewcomponent to display chat historySessionSelectorto show a two-column layout with preview on the rightInspiration
This feature was inspired by fzf's preview functionality, making it easier to find the right chat session without manually entering each one.
Screenshots
The preview panel shows on the right side of the terminal when using
cn ls:Fixes CON-3892
This agent session was co-authored by nate and Continue.
Summary by cubic
Adds a chat history preview to the session selector (cn ls and /resume). Fixes CON-3892 by making sessions easier to scan without opening them.