mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-16 14:32:34 +00:00
The SLASH_TRIGGER_RE regex used (?:^|[\s]) as its left anchor, so typing a / anywhere in the message (e.g. "hello /") opened the slash command popover — even though slash commands only execute at the beginning of a message. Anchor the regex strictly at position 0 (^) so the popover only appears when / is the first character, matching the actual execution semantics. The @-mention trigger is left untouched since those work anywhere in the text. |
||
|---|---|---|
| .. | ||
| composer | ||
| hooks | ||
| right-rail | ||
| sidebar | ||
| chat-drop-overlay.tsx | ||
| chat-swap-overlay.tsx | ||
| index.tsx | ||
| perf-probe.tsx | ||
| scroll-to-bottom-button.test.tsx | ||
| scroll-to-bottom-button.tsx | ||
| thread-loading.test.ts | ||
| thread-loading.ts | ||