hermes-agent/apps/desktop/src
kshitijk4poor 188e52db91 fix(desktop): keep slash/@ completion menu navigable and Esc-dismissable
The desktop composer's `onKeyUp` handler unconditionally re-ran
`refreshTrigger` on every keyup, including the Arrow/Enter/Tab/Escape keys
the open-trigger `onKeyDown` branch had already fully handled. Because
`refreshTrigger` re-detects the trigger and resets the active index to 0,
this produced two bugs in the `/` (and `@`) completion popover:

- ArrowDown/ArrowUp moved the highlight on keydown, then keyup snapped it
  straight back to the top — so the user could never cycle past the first
  couple of items.
- Escape closed the menu on keydown, then keyup re-detected the still-present
  `/` and immediately reopened it — so Esc appeared to do nothing.

Fix: skip the keyup-driven refresh for the navigation/control keys while a
trigger menu is open (they never edit text, so refreshing is pointless), and
only reset the highlight in `refreshTrigger` when the detected trigger query
actually changed. Applied to both the main composer (chat/composer/index.tsx)
and the message-edit composer (assistant-ui/thread.tsx), which shared the
same bug. New `shouldSkipTriggerRefreshOnKeyUp` helper is unit-tested.
2026-06-03 11:19:07 +05:30
..
app fix(desktop): keep slash/@ completion menu navigable and Esc-dismissable 2026-06-03 11:19:07 +05:30
components fix(desktop): keep slash/@ completion menu navigable and Esc-dismissable 2026-06-03 11:19:07 +05:30
hooks Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
lib feat(desktop): inline model picker in the status bar 2026-06-02 19:09:41 -05:00
store fix(desktop): keep in-flight new chats from vanishing on refresh 2026-06-03 00:21:05 -05:00
themes Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
types Merge pull request #37738 from NousResearch/bb/statusbar-model-menu 2026-06-02 20:00:39 -05:00
global.d.ts fix(desktop): triage batch of GUI quality-of-life fixes (#37536) 2026-06-02 16:33:22 -04:00
hermes.ts fix(desktop): keep pinned + recent sessions visible across compression 2026-06-02 07:12:05 -05:00
main.tsx fix(desktop): stabilize project folder sessions (#37586) 2026-06-02 20:23:09 +00:00
styles.css chore: uptick 2026-06-02 23:44:51 -05:00
vite-env.d.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00