hermes - 💡(How to fix) Fix TUI: /q alias resolves to /quit instead of /queue

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

In the TUI, typing /q exits Hermes instead of queuing a prompt for the next turn.

Root Cause

Alias collision between two slash command registrations:

  • Python side (hermes_cli/commands.py:101-102): /queue has alias q
  • TUI side (ui-tui/src/app/slash/commands/core.ts:112-116): /quit has alias q

TUI local commands are dispatched before reaching the Python backend, so /q always resolves to /quitctx.session.die().

Fix Action

Fix / Workaround

TUI local commands are dispatched before reaching the Python backend, so /q always resolves to /quitctx.session.die().

Code Example

// ui-tui/src/app/slash/commands/core.ts:112-116
{
    aliases: ['exit', 'q'],  // <-- q should be removed
    help: 'exit hermes',
    name: 'quit',
    run: (_arg, ctx) => ctx.session.die()
},

---

# hermes_cli/commands.py:101-102
CommandDef("queue", "Queue a prompt for the next turn (doesn't interrupt)", "Session",
           aliases=("q",), args_hint="<prompt>"),
RAW_BUFFERClick to expand / collapse

Summary

In the TUI, typing /q exits Hermes instead of queuing a prompt for the next turn.

Root Cause

Alias collision between two slash command registrations:

  • Python side (hermes_cli/commands.py:101-102): /queue has alias q
  • TUI side (ui-tui/src/app/slash/commands/core.ts:112-116): /quit has alias q

TUI local commands are dispatched before reaching the Python backend, so /q always resolves to /quitctx.session.die().

Expected Behavior

/q some follow-up prompt should queue the prompt for the next turn (matching the Python-side /queue alias), not exit the TUI.

Suggested Fix

Remove q from the aliases array on the /quit command in ui-tui/src/app/slash/commands/core.ts. /quit and /exit are explicit enough for exiting. This would let /q fall through to the Python backend where it correctly maps to /queue.

Relevant Code

// ui-tui/src/app/slash/commands/core.ts:112-116
{
    aliases: ['exit', 'q'],  // <-- q should be removed
    help: 'exit hermes',
    name: 'quit',
    run: (_arg, ctx) => ctx.session.die()
},
# hermes_cli/commands.py:101-102
CommandDef("queue", "Queue a prompt for the next turn (doesn't interrupt)", "Session",
           aliases=("q",), args_hint="<prompt>"),

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING