mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-10 18:35:17 +00:00
A run's start now awaits the timeline before the provider is called, and a failed start awaits its timeline writes before the run is cleared. Two readers raced those windows: - waitForForegroundStart returned as soon as a start failed, while the failed run was still tracked, so a steer send in that window replaced it and interrupted the session instead of starting its own turn. - waitForAgentEvent replayed the idle state from before a starting run and finished immediately, so `wait` after a dispatch could return before the turn ran. waitForForegroundStart now resolves only once the turn started or the run is cleared, as documented, and waitForAgentEvent waits for it before reading the agent's state. The OMP restored-history test previously finished only through that early return; its fake now starts the turn it later ends.