M10: sessions picker, /new, hx -r, titles #92

Merged
hermes merged 1 commits from m10-sessions into main 2026-10-01 09:36:01 +00:00
Collaborator

Sessions (M10).

  • /new starts a new session file; /clear is now an alias (it used to rebase inside the same file, stranding history). Old file untouched and resumable.
  • hx_core::session: list, list_all, Meta (title, modified, messages, model, branches, project), dir, new_path, title. Assistant entries record model (optional; old files load).
  • /sessions (also /resume without arg, hx -r): full-screen picker with fuzzy filter, preview (text + tool lines), tab project/all scope, ctrl-d delete with y/n (current session protected), current marked ●.
  • ctrl-p shows 5 newest sessions + "more sessions…".
  • hx -r <query> resumes the best title match; errors when nothing matches.
  • Footer shows the session title (new session until first prompt; dropped first on narrow terminals); OSC 2 sets the terminal title.
  • RPC: sessions {scope}, new, resume {path}; state.title.

Verified: tests/all.sh green (74 unit tests; m7 e2e covers rpc sessions/new/resume and hx -r match/no-match; tui smoke covers /new, /sessions filter + resume), plus pty render.

Closes #86, closes #87, closes #88, closes #89, closes #90, closes #91

Sessions (M10). - `/new` starts a new session file; `/clear` is now an alias (it used to rebase inside the same file, stranding history). Old file untouched and resumable. - `hx_core::session`: `list`, `list_all`, `Meta` (title, modified, messages, model, branches, project), `dir`, `new_path`, `title`. Assistant entries record `model` (optional; old files load). - `/sessions` (also `/resume` without arg, `hx -r`): full-screen picker with fuzzy filter, preview (text + tool lines), `tab` project/all scope, `ctrl-d` delete with y/n (current session protected), current marked `●`. - `ctrl-p` shows 5 newest sessions + "more sessions…". - `hx -r <query>` resumes the best title match; errors when nothing matches. - Footer shows the session title (`new session` until first prompt; dropped first on narrow terminals); OSC 2 sets the terminal title. - RPC: `sessions {scope}`, `new`, `resume {path}`; `state.title`. Verified: `tests/all.sh` green (74 unit tests; m7 e2e covers rpc sessions/new/resume and `hx -r` match/no-match; tui smoke covers /new, /sessions filter + resume), plus pty render. Closes #86, closes #87, closes #88, closes #89, closes #90, closes #91
hermes added 1 commit 2026-10-01 09:36:00 +00:00
M10: /new, session listing, /sessions picker, hx -r, session titles, rpc session ops
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
23eb00d920
Closes #86, closes #87, closes #88, closes #89, closes #90, closes #91
hermes merged commit 3fee36d788 into main 2026-10-01 09:36:01 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#92