Skip to content

feat(cli): improve resumed session recap#5704

Closed
xinbenlv wants to merge 3 commits into
NousResearch:mainfrom
xinbenlv:feat/resume-summary-tail
Closed

feat(cli): improve resumed session recap#5704
xinbenlv wants to merge 3 commits into
NousResearch:mainfrom
xinbenlv:feat/resume-summary-tail

Conversation

@xinbenlv

@xinbenlv xinbenlv commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • make resumed CLI sessions show a smarter full recap: short summary + recent tail + /history hint
  • add resume_display=tail to preserve the old tail-only behavior when users don't want the summary
  • surface continuation-chain context for compressed sessions and expand resume display coverage in tests

Test Plan

  • source .venv/bin/activate && python -m pytest tests/test_resume_display.py -q -o addopts=''

Best Validation Path

  1. Run:
    source .venv/bin/activate && python -m pytest tests/test_resume_display.py -q -o addopts=''
  2. Then do one manual smoke test:
    • start Hermes and have a short multi-turn conversation
    • quit
    • run hermes -c
    • verify the resumed panel shows:
      • Summary:
      • recent You: / Hermes: lines
      • Want the full transcript? Run /history.

Demo

Preferred real demo: a short terminal recording / GIF of:

  1. making a brief session,
  2. quitting,
  3. running hermes -c,
  4. pausing on the resumed panel,
  5. optionally typing /history.

For this PR, here is the fallback mock demo inline in the description, generated from the actual resumed-session renderer (so it reflects the real panel formatting, but it is not a full end-to-end hermes -c capture):

╭─────────────────────────── Previous Conversation ────────────────────────────╮
│   Summary: 2 user messages so far. recent focus: “What is Python?”; then     │
│ “How do I install it?”. last Hermes reply: “You can install Python from      │
│ python.org.”.                                                                │
│                                                                              │
│   Note: This resumed session is part of a continuation chain; older raw      │
│ history may live in an earlier linked session.                               │
│                                                                              │
│   ● You: What is Python?                                                     │
│   ◆ Hermes: Python is a high-level programming language.                     │
│   ● You: How do I install it?                                                │
│   ◆ Hermes: You can install Python from python.org.                          │
│                                                                              │
│   Want the full transcript? Run /history.                                    │
╰──────────────────────────────────────────────────────────────────────────────╯

Reviewer shortcut:

  • read the inline mock demo above for intended UX
  • run the targeted test command
  • if desired, do the manual hermes -c smoke test for the real experience

Closes #5703

@xinbenlv xinbenlv force-pushed the feat/resume-summary-tail branch from f162ec9 to 9ff1c82 Compare April 7, 2026 13:17
@xinbenlv xinbenlv closed this Apr 9, 2026
@xinbenlv xinbenlv deleted the feat/resume-summary-tail branch April 9, 2026 06:48
@xinbenlv xinbenlv restored the feat/resume-summary-tail branch April 9, 2026 06:56
@xinbenlv

xinbenlv commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

Mistakenly closed this PR after accidentally deleting its fork head branch during branch cleanup. Recreated it here:

#6458

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI resume UX: show summary + recent tail + full-history hint

1 participant