feat: enhance /sessions with message preview and sorted listing#25
Open
yuxiaoyang2007-prog wants to merge 2 commits intoop7418:mainfrom
Open
feat: enhance /sessions with message preview and sorted listing#25yuxiaoyang2007-prog wants to merge 2 commits intoop7418:mainfrom
yuxiaoyang2007-prog wants to merge 2 commits intoop7418:mainfrom
Conversation
- Show last message preview (user or assistant) for each session - Sort sessions by most recently active first (updatedAt desc) - Mark current session with ◀ indicator - Increase display limit from 10 to 15 sessions - Clean markdown/HTML from preview text for single-line display - Read only tail of JSONL files (64KB) for performance Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- /sessions now shows both IM-bound and terminal CLI sessions - CLI sessions display [CLI] tag with working directory - /switch <n> switches to any session (IM or CLI) by number - IM switch: rebinds current chat via bindToSession - CLI switch: creates new binding with sdkSessionId for resume - Aborts running task on old session before switching - Updated /start and /help to list /switch Co-Authored-By: Claude Opus 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.
Summary
Enhances the
/sessionscommand to help users identify and distinguish between sessions:claude --resumedisplays session context in the terminalupdatedAtdesc) instead of insertion orderBefore
After
Implementation details
os.homedir()andpath.join())Test plan
/sessionsshows message previews on Feishu🤖 Generated with Claude Code