Show a title hint in /resume instead of a raw session UUID - #125
Merged
Conversation
F-RESUME-01: the bare /resume list previously showed only a raw UUID
and timestamp per session ("674c91ce-f154-4903-9281-80a99b28384a ·
2026-08-02 08:13"), giving no way to tell sessions apart without
opening each one.
Adds forge_core::session_title_hint(), which cheaply opens and replays
just one session's journal (no live AgentSession/tools/model needed)
to pull its first user message as a short title. /resume now shows
that title when available, falling back to the id/timestamp only if
the journal can't be read.
Covered by a new end-to-end test creating a real prior session,
appending a user message, and asserting the picker shows it.
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.
Summary
Fixes F-RESUME-01 from the beta-readiness audit: the bare
/resumelist showed only a raw UUID and timestamp per session (e.g.674c91ce-f154-4903-9281-80a99b28384a · 2026-08-02 08:13), giving no way to tell sessions apart without opening each one.forge_core::session_title_hint()— cheaply opens and replays just one session's journal (independent of any liveAgentSession, no tools/model/governance needed) to pull its first user message as a short title./resumenow shows that title when available, falling back to id/timestamp only if the journal can't be read (never fails the whole listing over one unreadable session).Not included
Two visual findings from the same audit (a light-theme rendering artifact and an intermittent approval-button label) remain open — both root-caused (in this and a prior PR) to the terminal-output rendering layer rather than Forge's own style/buffer computation, which needs deeper escape-sequence-level debugging out of scope here.
Test plan
/resumein a fresh session sharing the same journal dir, asserts the picker item's title matchescargo test -p forge-tui --lib— 683 passedcargo test -p forge-core --lib— 130 passedcargo fmt --all -- --check— cleancargo build --release --locked --package forge-cli— clean, 0 warnings