hermes-agent/apps
Brooklyn Nicholson a6a78ff08a perf(desktop): use textContent for trigger precondition
Replace composerPlainText() call inside refreshTrigger's no-trigger
fast-bail with a textContent check. textContent is a browser-native
flat traversal; composerPlainText walks recursively with chip-aware
logic. We only need to know if @ or / appears; either way the trigger
char will be in textContent because chips contain @ in their refText.

Profile shows composerPlainText was ~18ms self over a 12s typing-during-
stream window, called from refreshTrigger on every keystroke. Most of
that was the precondition check (the trigger detection path is the
slow path but only runs when a trigger char is present).
2026-05-21 18:05:43 -05:00
..
dashboard Merge branch 'main' into bb/gui 2026-05-20 16:01:41 -04:00
desktop perf(desktop): use textContent for trigger precondition 2026-05-21 18:05:43 -05:00
shared feat: move dashboard to apps/ so we can share ws proto 2026-05-02 13:38:49 -05:00