From 09a491464c5fa10da01d33cd810e3ec2cc4241be Mon Sep 17 00:00:00 2001 From: Austin Pickett Date: Wed, 6 May 2026 11:58:53 -0400 Subject: [PATCH] feat(tui): add /sessions slash command for browsing and resuming previous sessions --- hermes_cli/commands.py | 3 +++ ui-tui/src/app/slash/commands/session.ts | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/hermes_cli/commands.py b/hermes_cli/commands.py index 2cf2c3e9f4..b82cc2b4fc 100644 --- a/hermes_cli/commands.py +++ b/hermes_cli/commands.py @@ -109,6 +109,9 @@ COMMAND_REGISTRY: list[CommandDef] = [ CommandDef("resume", "Resume a previously-named session", "Session", args_hint="[name]"), + # Configuration + CommandDef("sessions", "Browse and resume previous sessions", "Session"), + # Configuration CommandDef("config", "Show current configuration", "Configuration", cli_only=True), diff --git a/ui-tui/src/app/slash/commands/session.ts b/ui-tui/src/app/slash/commands/session.ts index 9dddd85372..ce9315ddb4 100644 --- a/ui-tui/src/app/slash/commands/session.ts +++ b/ui-tui/src/app/slash/commands/session.ts @@ -92,6 +92,19 @@ export const sessionCommands: SlashCommand[] = [ } }, + { + help: 'browse and resume previous sessions', + name: 'sessions', + run: (arg, ctx) => { + if (ctx.session.guardBusySessionSwitch('switch sessions')) { + return + } + if (!arg.trim()) { + return patchOverlayState({ picker: true }) + } + } + }, + { help: 'attach an image', name: 'image',