mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-19 23:05:21 +00:00
* Interrupting sends no longer fail with "already has an active run" Two sends that interrupt the same running agent raced: the first left the foreground lane after cancelling and before reserving its new run, so the second send's cancel ran in that gap, saw the agent still marked running, and tracked a phantom run that made the first send's start throw. Replacements now queue per agent in arrival order, and each cancels and reserves its run inside one foreground mutation. A replacement that finds a run still starting waits for it outside the lane, so Stop still reaches it. Co-authored-by: Michael Wu <421504+michaelmwu@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Interrupting sends still recover an agent whose turn never starts A replacement now waits for a starting run only up to the rescue timeout, then cancels it the way main did, so sending another message still unsticks an agent whose provider never acknowledges a start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * A queued replacement acts on the agent as it is when it gets the lane Resolve the managed agent inside the foreground mutation instead of before queueing, so a session reload while the send waits cannot leave it writing state to, or checking steer ownership against, the old agent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: Michael Wu <421504+michaelmwu@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>