Skip to content

feat(tui): add /sessions slash command for browsing and resuming previous sessions#20805

Merged
austinpickett merged 1 commit into
mainfrom
austin-feat-sessions-skills-menu
May 7, 2026
Merged

feat(tui): add /sessions slash command for browsing and resuming previous sessions#20805
austinpickett merged 1 commit into
mainfrom
austin-feat-sessions-skills-menu

Conversation

@austinpickett
Copy link
Copy Markdown
Collaborator

@austinpickett austinpickett commented May 6, 2026

What does this PR do?

Adds a /sessions slash command to the Hermes TUI (Terminal User Interface) that allows users to browse and resume previous sessions via an interactive picker. This provides a convenient way to switch between sessions without losing context.

Related Issue

N/A

Type of Change

  • ✨ New feature

Changes Made

  • ui-tui/src/app/slash/commands/session.ts: Added the /sessions command definition that opens the existing SessionPicker overlay.
  • hermes_cli/commands.py: Added CommandDef("sessions", "Browse and resume previous sessions", "Session") to the COMMAND_REGISTRY so the gateway recognizes the command and includes it in autocomplete.

How to Test

  1. Check out the branch: git checkout austin-feat-sessions-skills-menu
  2. Run the TUI: hermes htui
  3. Type /se in the command input — you should see sessions appear in the autocomplete dropdown.
  4. Press Enter to open the SessionPicker:
    • Use up/down arrows to navigate
    • Press Enter or number keys (1-9) to resume a session
    • Press 'd' to delete a session (confirmation required)
    • Press Esc or 'q' to cancel
  5. Verify that the picker shows a list of previous sessions (up to 200) and that selecting one resumes it correctly.

Checklist

Code

  • I've read the Contributing Guide
  • My commit messages follow Conventional Commits (fix(scope):, feat(scope):, etc.)
  • I searched for existing PRs to make sure this isn't a duplicate
  • My PR contains only changes related to this fix/feature (no unrelated commits)
  • I've run pytest tests/ -q and all tests pass (no regressions)
  • I've tested on my platform: Ubuntu 24.04 (WSL2)

Documentation & Housekeeping

  • I've updated relevant documentation (this PR description explains the feature)
  • I've considered cross-platform impact (changes are UI-related, should work on all platforms)
  • I've updated tool descriptions/schemas if I changed tool behavior (N/A — no tool behavior change)

For New Skills

N/A

Screenshots / Logs

image image

@austinpickett austinpickett force-pushed the austin-feat-sessions-skills-menu branch from 619b72c to 09a4914 Compare May 6, 2026 15:59
@alt-glitch alt-glitch added type/feature New feature or request comp/tui Terminal UI (ui-tui/ + tui_gateway/) P3 Low — cosmetic, nice to have labels May 6, 2026
@austinpickett austinpickett merged commit b0393af into main May 7, 2026
10 of 11 checks passed
@austinpickett austinpickett deleted the austin-feat-sessions-skills-menu branch May 7, 2026 22:54
JinyuID pushed a commit to JinyuID/hermes-agent that referenced this pull request May 11, 2026
…essions-skills-menu

feat(tui): add /sessions slash command for browsing and resuming previous sessions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tui Terminal UI (ui-tui/ + tui_gateway/) P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants