feat(cli): Tab now accepts auto-suggestions (ghost text)

Previously, Tab only handled dropdown completions. Users seeing gray
ghost text from history-based suggestions had no way to accept them
with Tab - they had to use Right arrow or Ctrl+E.

Now Tab follows priority:
1. Completion menu open → accept selected completion
2. Ghost text suggestion available → accept auto-suggestion
3. Otherwise → start completion menu

This matches user intuition that Tab should 'complete what I see.'
This commit is contained in:
StefanIsMe
2026-03-19 20:50:25 +07:00
committed by Test
parent e84d952dc0
commit 04b6ecadc4
2 changed files with 12 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ When resuming a previous session (`hermes -c` or `hermes --resume <id>`), a "Pre
| `Ctrl+B` | Start/stop voice recording when voice mode is enabled (`voice.record_key`, default: `ctrl+b`) |
| `Ctrl+C` | Interrupt agent (double-press within 2s to force exit) |
| `Ctrl+D` | Exit |
| `Tab` | Autocomplete slash commands |
| `Tab` | Accept auto-suggestion (ghost text) or autocomplete slash commands |
## Slash Commands