hermes-agent/ui-tui/src/domain
Brooklyn Nicholson 530e7c0d4e fix(tui): offer skill completions for a slash typed mid-message
A slash only opened completions at position 0, so `please run /cle`
suggested nothing. That is correct for execution — commands only run from
the start of a message — but it also removed the ability to reference a
skill inside prose.

Position 0 and mid-message are now detected separately. A leading slash
stays a command invocation with arg completion and the full command set; a
slash after whitespace is an inline skill reference. Only skills are
offered there, since a built-in like /model or /new acts on the app and
reads as nothing useful inside a sentence.

The gateway tags each completion with its kind, derived from the same
skill-command and skill-bundle providers the completer already consumes,
so the TUI filters on data rather than sniffing the display meta glyphs.

applyCompletion keyed its leading-slash check off the start of the input,
which is only the replace point for a position-0 command. It now keys off
the character before compReplace, so an inline pick lands as
`please run /clean` instead of `please run //clean`. The Tab handler
carried its own divergent copy of that logic and now calls the shared
helper.
2026-07-25 21:19:23 -05:00
..
blockLayout.ts fix(timeline): persist typed display events (#69771) 2026-07-23 14:46:24 -04:00
details.ts fix(tui): apply details mode live 2026-04-26 13:34:33 -05:00
messages.ts fmt(js): npm run fix on merge (#70291) 2026-07-23 20:23:02 +00:00
paths.ts feat: unify active-project identity in chat status (supersedes #64721) 2026-07-18 23:08:13 -04:00
providers.ts chore(tui): /clean pass — inline one-off locals, tighten ConfirmPrompt 2026-04-19 07:55:38 -05:00
roles.ts fix(tui): restore macOS copy behavior and theme polish (#17131) 2026-04-28 18:47:14 -05:00
slash.ts fix(tui): offer skill completions for a slash typed mid-message 2026-07-25 21:19:23 -05:00
usage.ts refactor(tui): store-driven turn state + slash registry + module split 2026-04-16 12:34:45 -05:00
viewport.ts fix(tui): stabilize sticky prompt tracking 2026-04-28 22:10:40 -05:00