Repository navigation
Pi Agent Platform v1.36.1
Agent Watch failing to reach a running Studio for a moment no longer stops a task.
Fixes
- A broker failure while Studio answers is asked again. Found on 2026-10-22: after a long command, renewing the run's grant through Agent Watch failed once with
managed-broker:serverUnavailable(Agent Watch's way to Studio answered a 5xx; Studio never saw the call). Studio's heartbeat said ready, so the failure was not waited out and a 25-minute task with 2 of 4 steps open stopped at once. Now amanaged-brokerfailure on a Studio that answers is asked again, pausing longer each time (2 s doubling), until it has failed for 3 minutes without a request going through; then it fails as before. - Closing the round's run goes through the same wait, so a passing gateway error does not fail a turn whose work is done.
- Each wait is in
studio-link.jsonland reported to Studio (Logs → "Mất kết nối", causebroker_offline). Codes that are not Agent Watch's (a refused key or report,connector_unavailableon a running Studio) still fail at once.
Tests
tests/managed-failures.test.mjs: a renew and a close Agent Watch could not send once are asked again and the turn ends well (both fail on 1.36.0).tests/managed-studio-link.test.mjs: the retry window, its reset when a request goes through, and codes that still fail at once.