Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
fix(model_loop): end a retry backoff when the run is stopped
`retry_stream` slept through each backoff with `albedo_clock.sleep`, which does not receive the `albedo_run_stop` wake that `turn.cancel` and `turn.cancel_call` send. An interrupt during the wait before attempt 8 held the turn in `interrupting` for up to 16 s, and the same for a cancelled title or side-question call. The backoff now waits on the stop selector, so it ends at once; the next attempt then finds the latch raised and the run cancelled. The contract did not name a deadline for this; the least surprising behavior is that a stop is not delayed by a wait that only exists to retry, so docs/http-sessions.md now says so.
Author
aly.codes Date (Nov 19, 2026, 8:27 PM UTC) Commit
Copy SHA
Parent 3e9ea350 3e9ea35087e485de9b0fd1dadd25ac8051dec5bc