fix(cli): surface recent sessions inside /history and /resume (salvage #4448) - #4734
Closed
teknium1 wants to merge 1 commit into
Closed
fix(cli): surface recent sessions inside /history and /resume (salvage #4448)#4734teknium1 wants to merge 1 commit into
teknium1 wants to merge 1 commit into
Conversation
When /history is used in an empty chat, show a table of recent resumable sessions instead of a dead-end message. When /resume is called with no argument, show the same table with resume guidance. - Add _list_recent_sessions() and _show_recent_sessions() to HermesCLI - Remove redundant exclude_sources (already filtered by source='cli') - Center the table header properly Cherry-picked from PR #4448.
Contributor
Author
|
Already merged via commit 4d99305 by the other agent. Closing as redundant. |
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
Salvage of #4448 by @kshitijk4poor — cherry-picked onto current main with cleanup.
When
/historyis used in an empty chat, instead of a dead-end "(._.) No conversation history yet" message, it now shows a compact table of recent resumable sessions. Similarly,/resumewith no argument shows the same table with resume guidance.Changes
_list_recent_sessions()— fetches recent CLI sessions from SessionDB, excludes current session_show_recent_sessions()— renders an inline session table (title, preview, last active, ID)show_history()— shows recent sessions when current chat is empty_handle_resume_command()— shows recent sessions when no target is providedCleanup from original PR
exclude_sources=["tool"]— already filtered bysource="cli".center(86))Tests
test_cli_init.pycovering both paths