Skip to content

Show a title hint in /resume instead of a raw session UUID - #125

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/resume-session-titles
Aug 2, 2026
Merged

Show a title hint in /resume instead of a raw session UUID#125
github-actions[bot] merged 1 commit into
mainfrom
fix/resume-session-titles

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

Fixes F-RESUME-01 from the beta-readiness audit: the bare /resume list 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.

  • Adds forge_core::session_title_hint() — cheaply opens and replays just one session's journal (independent of any live AgentSession, no tools/model/governance needed) to pull its first user message as a short title.
  • /resume now 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

  • New end-to-end test: creates a real prior session, appends a user message, opens /resume in a fresh session sharing the same journal dir, asserts the picker item's title matches
  • cargo test -p forge-tui --lib — 683 passed
  • cargo test -p forge-core --lib — 130 passed
  • cargo fmt --all -- --check — clean
  • cargo build --release --locked --package forge-cli — clean, 0 warnings

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.
@github-actions
github-actions Bot enabled auto-merge (squash) August 2, 2026 04:14
@github-actions
github-actions Bot merged commit b7f6d3f into main Aug 2, 2026
6 checks passed
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.

1 participant