feat(resume): add "expanded" resume display mode#7834
Closed
counterposition wants to merge 1 commit into
Closed
Conversation
- Introduce `resume_display: expanded` option that shows the compact recap panel followed by the full last assistant response - Extract `_render_response_panel` and `_strip_resume_reasoning` as reusable methods, deduplicating response rendering logic - Add `_display_post_resume_context` orchestrator used by both startup resume and `/resume` command - Add tests for expanded mode, including no-op when assistant text is absent - Update configuration and sessions docs with the new three-way setting Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
Closing as superseded by PR #31695 (merged), which bundles this fix and several sibling PRs in the PR #31695 wires Authorship for the cherry-picked commits is preserved in (Bulk-closed during a CLI PR triage sweep.) |
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
Adds a new
expandedresume display mode that shows users the full last assistant response alongside the existing compact recap when resuming a session.Here's what it looks like:

Why
When resuming a Hermes CLI session, the compact recap truncates assistant replies. That is enough to remind users what the conversation was about, but often not enough to recover the actual answer or next-step guidance Hermes gave right before the session ended. In practice, this makes resume feel disorienting: users can see that Hermes said something useful, but not the full content they need to continue.
The full text is already present in session storage. This change makes the resume UX surface that information directly, so users can pick up where they left off without replaying the whole session or re-asking for the same guidance.
What changed
display.resume_display = expandedas a new mode alongside the existingminimalandfullsettingsexpandedrenders the existing compact recap plus the complete last visible assistant response, giving users both orientation and actionable context--resumeand in-session/resumenow use the same rendering logicminimalandfull, so this is an additive, backward-compatible changeTesting
tests/cli/test_resume_display.py— 30 passed (covers the new expanded mode and related edge cases)tests/cli/test_cli_init.py— 26 passed (covers resume initialization behavior)Notes
fullexpandedis opt-in via config; no new CLI flag was added in this PR