Files
hermes-agent/agent
David Dudok de Wit fdc3d4517b fix(api): keep an API session's id after compression exhaustion
An API conversation whose turn exhausted compression got the messaging
auto-reset, which rotated its route to a fresh session id. Every API
door re-checks the id its caller addresses (restore_api_session), so
the session-chat door's re-run and every later request to that id were
refused with admission_conflict (HTTP 500 on /api/sessions/{id}/chat,
the `hermes peer dm` transport).

- The compression-exhaustion reset skips API_SERVER sources; the caller
  gets the typed compression_exhausted result and keeps its id.
  Every other platform keeps the reset.
- The session-chat door's re-run records resume_unanswered on its
  admission, and the turn adopts the row the failed attempt persisted
  (adopt_unanswered_turn), as the in-process door does (#115325),
  instead of storing the message a second time. It adopts only a bare
  user tail: a re-run after a completed tool keeps that tool's calls
  and results in its history, as before.

Refs #134889
Fixes #140365

(cherry picked from commit 5103e6b359d7c0f4a01e74aae57554a41a430e8d)
2026-10-18 03:27:59 -07:00
..
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-15 05:23:51 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:28:23 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:28:23 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
…
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:54:07 +02:00
2026-10-08 19:54:07 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:54:07 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 21:29:48 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 19:54:07 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-08 21:29:48 +02:00