hermes-agent/apps/desktop/src
kshitijk4poor a23728dfcc fix(desktop): make Stop button actually interrupt when a turn is queued
When a follow-up message is queued during a busy turn, the composer
clears and the primary button switches back to the Stop affordance. But
clicking Stop ran interruptAndSendNextQueued(), which cancelled the turn
and *immediately* re-sent the head of the queue. The auto-drain effect
(busy true to false) compounded this: any explicit cancel flipped busy
false and re-fired the queue. The net effect was that Stop appeared to
never interrupt -- the agent kept running on the queued prompt.

Fix:
- Stop button (busy + empty composer) now always performs a pure
  interrupt via onCancel(); it no longer hijacks the queue.
- An explicit interrupt latches userInterruptedRef so the busy to false
  auto-drain skips exactly one drain. Queued turns are preserved and the
  user resumes them deliberately (Cmd/Ctrl+K, Enter, or the per-row
  send-now arrow), matching the documented Esc=cancel / Cmd+K=send-next
  affordances.
- Extracted the settle decision into shouldAutoDrainOnSettle() with unit
  tests covering natural completion vs. explicit interrupt.
2026-06-03 11:46:02 +05:30
..
app fix(desktop): make Stop button actually interrupt when a turn is queued 2026-06-03 11:46:02 +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): make Stop button actually interrupt when a turn is queued 2026-06-03 11:46:02 +05:30
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