Skip to content

feat(resume): add "expanded" resume display mode#7834

Closed
counterposition wants to merge 1 commit into
NousResearch:mainfrom
counterposition:feat/resume-expanded-control
Closed

feat(resume): add "expanded" resume display mode#7834
counterposition wants to merge 1 commit into
NousResearch:mainfrom
counterposition:feat/resume-expanded-control

Conversation

@counterposition

@counterposition counterposition commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a new expanded resume 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:
Screenshot 2026-04-11 at 12 44 16 PM

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

  • Introduced display.resume_display = expanded as a new mode alongside the existing minimal and full settings
  • expanded renders the existing compact recap plus the complete last visible assistant response, giving users both orientation and actionable context
  • Unified the post-resume display path so that startup --resume and in-session /resume now use the same rendering logic
  • Preserved existing behavior for minimal and full, so this is an additive, backward-compatible change

Testing

  • 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

  • Default remains full
  • expanded is opt-in via config; no new CLI flag was added in this PR
  • This change is intentionally targeted at resume UX: it improves session re-entry without changing how normal responses are displayed

- 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>
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 29, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Closing as superseded by PR #31695 (merged), which bundles this fix and several sibling PRs in the /resume recap cluster.

PR #31695 wires _display_resumed_history() into in-session /resume (the missing 1-line bug fix) AND exposes the recap truncation limits + tool-call-only skip as configurable display.* keys. Eight contributors independently filed PRs against this same UX gap — thanks for being one of them.

Authorship for the cherry-picked commits is preserved in git log via rebase-merge. If your PR included specific behavior that PR #31695 missed, please reopen with a follow-up scoped to that delta.

(Bulk-closed during a CLI PR triage sweep.)

@teknium1 teknium1 closed this May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants