hermes - ✅(Solved) Fix /resume sessions list — show last activity timestamp or mark latest session [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#17352Fetched 2026-04-30 06:48:10
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3cross-referenced ×1
  • Hermes Agent CLI, self-hosted
  • This would improve UX significantly for power users who restart frequently

Root Cause

  • Hermes Agent CLI, self-hosted
  • This would improve UX significantly for power users who restart frequently

Fix Action

Fixed

PR fix notes

PR #17532: feat(cli): mark latest session with ★ in /resume and sessions list

Description (problem / solution / changelog)

Closes #17352.

Summary

The /resume inline picker and hermes sessions list already show a Last Active timestamp column, but users still had to eyeball timestamps to pick their most-recent conversation. Since list_sessions_rich sorts by last_active DESC, the first row is always the most-recently-active session — so prefix it with a ★ so users can spot their resume-what-I-was-just-doing target in one glance.

Before

  Title                            Preview                                  Last Active   ID
  Alpha project                    Working on pr-cli                        0d ago        sess-xxxx-yyyy-zz-01
  —                                No title here                            1d ago        sess-xxxx-yyyy-zz-02
  Gamma                            Another                                  2d ago        sess-xxxx-yyyy-zz-03

After

  Title                            Preview                                  Last Active   ID
  ★ Alpha project                  Working on pr-cli                        0d ago        sess-xxxx-yyyy-zz-01
  —                                No title here                            1d ago        sess-xxxx-yyyy-zz-02
  Gamma                            Another                                  2d ago        sess-xxxx-yyyy-zz-03

Scope

Two surfaces, two display-only changes:

  • cli.py::_show_recent_sessions — inline list shown mid-chat by /resume (no args) and /history (when empty)
  • hermes_cli/main.pyhermes sessions list CLI command, both titled and preview-only layouts

Column widths preserved: consumes 2 chars from the 32-wide title column (title content truncated from 30 → 28 chars on the starred row only). Last Active / ID columns unchanged.

Not in scope

  • The curses picker _session_browse_picker already highlights the cursor row; a marker would be redundant with the active-selection colorway.
  • No change to db.list_sessions_rich ordering; the fix relies on the existing DESC sort.

Changed files

  • cli.py (modified, +10/-2)
  • hermes_cli/main.py (modified, +12/-3)

Code Example

Sessions:

[LATEST] 回来了吗?2 minutes ago
  Dreaming报告的3条新的结论...2 hours ago
  系统重启测试...Yesterday

Usage: /resume <session name>
RAW_BUFFERClick to expand / collapse

Problem

The /resume command lists past sessions with auto-generated titles, but:

  1. No timestamps are shown in the session list
  2. There is no indicator for the most recent session
  3. Users must manually guess which session is the latest

This makes it hard to quickly identify and resume a specific recent conversation, especially after a restart.

Proposed Solutions (pick one or both)

  1. Show last activity timestamp — add a last_activity or updated_at field to each session row in the /resume list output

  2. Mark the latest session — prepend ★ LATEST or similar badge to the most recently active session

Example (desired)

Sessions:

★ [LATEST] 回来了吗? — 2 minutes ago
  Dreaming报告的3条新的结论... — 2 hours ago
  系统重启测试... — Yesterday

Usage: /resume <session name>

Context

  • Hermes Agent CLI, self-hosted
  • This would improve UX significantly for power users who restart frequently

extent analysis

TL;DR

Add a last_activity field to each session row in the /resume list output and consider marking the latest session with a badge.

Guidance

  • To address the issue, modify the /resume command to include a timestamp for each session, such as last_activity or updated_at, to help users identify recent conversations.
  • Implement a sorting mechanism to display the most recent session at the top of the list, making it easier for users to identify and resume their latest conversation.
  • Consider adding a visual indicator, like ★ LATEST, to the most recently active session to further improve usability.
  • Review the current data storage and retrieval process to ensure that session timestamps are accurately updated and reflected in the /resume output.

Example

// Example output with last_activity field and latest session badge
Sessions:
★ [LATEST] 回来了吗? — 2 minutes ago
  Dreaming报告的3条新的结论... — 2 hours ago
  系统重启测试... — Yesterday

Notes

The proposed solution assumes that the necessary data, such as session timestamps, is available and can be accurately retrieved. If this data is not currently stored or updated, additional modifications may be required to track session activity.

Recommendation

Apply the workaround by adding a last_activity field and marking the latest session, as this will significantly improve the user experience for power users who frequently restart the system.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - ✅(Solved) Fix /resume sessions list — show last activity timestamp or mark latest session [1 pull requests, 1 participants]