hermes-agent/apps/desktop/src
Sophia b4d5ba3e0d fix(desktop): preserve live background subagents across message.start (#64015)
The desktop message-stream hook wiped the per-session subagent store on every new turn (use-message-stream.ts:860), dropping still-running and queued rows along with the previous turn's terminal entries. Late subagent.tool / subagent.progress / subagent.complete events for surviving background tasks were then silently dropped by upsertSubagent's createIfMissing guard, so the rows never returned and their completion summaries never rendered.

Replace the unconditional clearSessionSubagents() call at the message.start boundary with a new pruneFinishedSessionSubagents() that filters out only terminal-status rows. The Stop-action call at use-prompt-actions.ts:1546 still uses clearSessionSubagents because /stop genuinely cancels running subagents, so dropping their rows is correct.

Tests: 3 new cases in subagents.test.ts (regression for the wipe, late completion acceptance after prune, cross-session isolation). Failing-first verified: all 3 fail on unfixed (pruneFinishedSessionSubagents not exported), all 3 pass on fix; 7 pre-existing subagents tests stay green; 3 gateway-events tests stay green; 6 background-delegation tests stay green. The Stop-action use-prompt-actions.test.tsx failures predate this branch (window-not-defined env issue, verified by stash-and-rerun).
2026-07-13 16:55:46 -07:00
..
app fix(desktop): preserve live background subagents across message.start (#64015) 2026-07-13 16:55:46 -07:00
components Merge pull request #52935 from NousResearch/bb/desktop-inline-rendering 2026-06-26 13:36:43 -05:00
fonts fix(desktop): crisp terminal text via opaque xterm canvas 2026-06-12 19:36:30 -05:00
hooks feat(desktop): add shared project UI primitives 2026-06-25 16:40:27 -05:00
i18n Merge pull request #52935 from NousResearch/bb/desktop-inline-rendering 2026-06-26 13:36:43 -05:00
lib Merge pull request #52935 from NousResearch/bb/desktop-inline-rendering 2026-06-26 13:36:43 -05:00
store fix(desktop): preserve live background subagents across message.start (#64015) 2026-07-13 16:55:46 -07:00
themes style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
types style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
global.d.ts Merge pull request #52828 from helix4u/fix/desktop-backend-update-indicator 2026-06-26 11:49:07 -05:00
hermes-profile-scope.test.ts fix(desktop): route gateway restart / status / update to the active profile 2026-06-24 19:16:26 -05:00
hermes.test.ts fix(desktop): route profile session reads 2026-06-11 18:09:24 -05:00
hermes.ts style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
main.tsx feat(desktop): floating pet, pop-out overlay + Cmd+K picker 2026-06-20 14:18:40 -05:00
styles.css feat(desktop): show a calm "will resume" notice for background delegate_task 2026-06-25 19:57:51 -05:00
vite-env.d.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00