mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-30 06:41:51 +00:00
fix(tui): remove 'q' alias from /quit, add to /queue
The TUI frontend's slash command registry shadowed /queue's 'q' alias with /quit's 'q' alias. Since /quit appeared later in the registry, the flat lookup kept the later entry, making /q always quit instead of queueing a prompt. This mirrors the backend fix in PR #10538 (hermes_cli/commands.py) but applies the same correction to the TUI TypeScript registry. Fixes #10467
This commit is contained in:
parent
8191f663dd
commit
064ac28cbd
1 changed files with 2 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ export const coreCommands: SlashCommand[] = [
|
|||
},
|
||||
|
||||
{
|
||||
aliases: ['exit', 'q'],
|
||||
aliases: ['exit'],
|
||||
help: 'exit hermes',
|
||||
name: 'quit',
|
||||
run: (_arg, ctx) => ctx.session.die()
|
||||
|
|
@ -547,6 +547,7 @@ export const coreCommands: SlashCommand[] = [
|
|||
},
|
||||
|
||||
{
|
||||
aliases: ['q'],
|
||||
help: 'inspect or enqueue a message',
|
||||
name: 'queue',
|
||||
run: (arg, ctx) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue