fix(cli): show full titles in /resume list instead of silently truncating#14133
Closed
sharziki wants to merge 1 commit into
Closed
fix(cli): show full titles in /resume list instead of silently truncating#14133sharziki wants to merge 1 commit into
sharziki wants to merge 1 commit into
Conversation
…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>
Collaborator
Collaborator
|
Likely duplicate of #14098. |
This was referenced Apr 23, 2026
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.
Closes #14082
The recent-sessions list that
/resume(and/historywith 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 becauseresolve_session_by_titlerequires 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:
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
/resumewill 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_sessionsand 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.