Files
romm/backend
Georges-Antoine Assi 8305b2f36d fix(streaming): release a failed claim from one place (#5024)
* fix(streaming): release a failed claim from one place

claim_session released a failed claim at each refusal inside its helpers
and re-raised any HTTPException untouched from its catch-all, trusting the
raiser to have released it. A new HTTPException that skipped its own
abort_claim would have left the container reserved until the claim went
stale.

The helpers now only raise. A _ClaimUndo carries the session and the id
of any blank card _settle_memory_card creates, and the catch-all calls
abort_claim once for every failure, HTTPException included. The probe and
_hydrate_saves no longer take the session or blank id, which they only
needed to abort.

Closes #5004

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Trim the _settle_memory_card docstring per Greptile review

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 08:58:36 -04:00
..
2026-10-01 19:17:30 -04:00
2024-02-10 12:43:39 -05:00
2025-07-05 19:17:40 -04:00