Skip to content

fix(cli): show full titles in /resume list instead of silently truncating#14133

Closed
sharziki wants to merge 1 commit into
NousResearch:mainfrom
sharziki:fix/14082-resume-full-title-display
Closed

fix(cli): show full titles in /resume list instead of silently truncating#14133
sharziki wants to merge 1 commit into
NousResearch:mainfrom
sharziki:fix/14082-resume-full-title-display

Conversation

@sharziki

Copy link
Copy Markdown
Contributor

Closes #14082


The recent-sessions list that /resume (and /history with an empty current chat) renders was truncating each title to 30 characters so it fit a fixed-width table column. The helper text under the list tells users to "Use /resume ", but the title shown there would never match because resolve_session_by_title requires an exact match. So copy-pasting the displayed title resulted in "Session not found".

The fix swaps the fixed-column table for a two-line-per-session layout:

  Salvage BytePlus Volcengine PR With Fixes
    id: 20260420_120000_abcdef  ·  2h ago  ·  wiring up the missing unit tests

Each session occupies its own block: the full title on the first line, then the session id, relative last-active, and a capped preview on the second. Users can now copy either the title or the id and /resume will resolve it. The preview is still bounded (100 chars) so long summaries don't blow up the list.

Covered by a regression test that feeds a >30-char title into _show_recent_sessions and asserts the full title (not a truncated variant) appears in the output. The existing tests for the short-title case continue to pass.

Disclaimer: this contribution was prepared with AI-agent assistance.

…ting

Closes #14082

The recent-sessions list rendered by `/resume` (and by `/history` when the
current chat is empty) truncated each title to 30 characters so it would
fit a fixed-width column. Users who copied the displayed title into
`/resume <title>` then hit "Session not found" because the resolver
requires an exact match.

Replace the fixed-column table with a two-line-per-session layout: the
full title on its own line, followed by the session id, relative last
active, and a capped preview on the next. Copy-paste of either the
title or the id now works without guesswork. Preview is still capped to
keep the list readable.

Added a regression test that renders a >30-char title and asserts the
full string (not a truncated variant) is in the output.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists labels Apr 22, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #14098 — both fix #14082 by showing full titles in /resume session list.

@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #14098.

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 duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/resume fails on title match because display truncates titles to 30 chars

2 participants