hermes-agent/apps/desktop/src
bb 3c4f5c5217 fix(desktop): recover image/file attach and /compress after a stale session drop
After sleep/wake, a long idle, or a remote backend restart, the gateway
drops its in-memory runtime session while the desktop still holds the old
id. prompt.submit already recovered, so plain text kept working and the
failure looked selective: attaching an image or running /compress died
with a bare "session not found" and a new chat was the only workaround.

Attach runs BEFORE prompt.submit, so submit's recovery never got a
chance — image.attach_bytes / image.attach / file.attach failed first.
Route them (and session.compress) through the shared resolver, and thread
the recovered id back to the caller so the follow-up submit targets the
live session instead of the dead one.

Attachment bytes are read once, outside the retry, so recovering a large
upload doesn't re-read it. /compress deliberately does NOT opt into
timeout recovery: it is legitimately LLM-slow and retrying a timeout
would double a minutes-long call.

Reported-by: bapemonkey (Discord)
Co-authored-by: xxxigm <xxxigm@users.noreply.github.com>
Co-authored-by: zzz163519 <zzz163519@users.noreply.github.com>
Co-authored-by: luxles <luxles@users.noreply.github.com>
2026-08-07 13:24:09 -05:00
..
app fix(desktop): recover image/file attach and /compress after a stale session drop 2026-08-07 13:24:09 -05:00
assets/tiers
…
components fix(desktop): preserve root recovery through StrictMode replay 2026-08-07 12:28:19 -05:00
contrib feat(desktop): ctx.os — the curated OS door for plugins 2026-08-04 11:33:25 -06:00
debug fmt(js): `npm run fix` on merge (#78271) 2026-08-04 07:10:23 +00:00
fonts
…
hooks
…
i18n In-app browser and previews are real layout-tree tabs (#77705) 2026-08-05 16:22:58 +00:00
lib Merge pull request #80736 from NousResearch/bb/reasoning-summary-blocks 2026-08-06 22:02:13 -06:00
plugins fix(desktop): drop the gateway-pill dogfood plugin 2026-08-06 22:29:33 -05:00
sdk feat(desktop): ctx.os — the curated OS door for plugins 2026-08-04 11:33:25 -06:00
store fix(desktop): add workspace-cwd ownership so switches are atomic 2026-08-07 13:06:35 -05:00
themes
…
types fix(desktop): make remote backend updates terminal-state driven 2026-08-05 10:34:18 -06:00
global.d.ts fix(desktop): render remote PDFs in preview rail 2026-08-05 10:26:48 -06:00
hermes-cron-scope.test.ts
…
hermes-parity.test.ts
…
hermes-profile-scope.test.ts
…
hermes.test.ts
…
hermes.ts fix(desktop): stop dropping pinned sessions past the page limit 2026-08-06 21:11:10 -05:00
main.tsx fix(desktop): preserve root recovery through StrictMode replay 2026-08-07 12:28:19 -05:00
pairing-scope.test.ts
…
styles.css fix(desktop): un-break the .btn-arc rule — '*/' inside a CSS comment ended it early 2026-08-03 18:16:46 +05:30
vite-env.d.ts
…
webhooks-rest.test.ts
…