Repository navigation
fix(mobile): let slow Automation catalog reads finish - #37669
Conversation
…obile-automation-catalog
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Phone Automations could remain on Loading when a successful list/status pair took more than 15 seconds: the next poll discarded its publication authority before the replies arrived. This PR lets that pair finish, skips periodic ticks while pending, and coalesces events or explicit refreshes into one following read. The existing 30-second timeout is unchanged. Accepted actions retire older catalog reads before updating rows, and an older refresh cannot clear a newer action warning. Explicit refreshes finish on read settlement or owner retirement, including silent connection-generation replacement. Cancellation remains limited to catalog reads; user writes and uncertain create outcomes keep their existing behavior. Page cancellation still releases the local waiter while an uncancellable host request retains its physical slot until normal settlement. Independent correctness and architecture review passed; the required separate continued reviewer and original reviewer verified the one lifetime-cleanup repair. A later test-only repair made the timer callbacks typecheck without changing their timing or assertions. No findings are deferred. Slow 20-second and 29-second schedules fail on unpatched main. All 76 focused production-hook/request-boundary tests pass, covering explicit/event coalescing, action/warning ordering, sibling cleanup, replacement lifetimes, existing positive create reconciliation and bridge signal behavior. No app, emulator, screenshot, or agent execution was required or performed for this invisible mobile tests-row change. Final CI is green on For Brennan’s review: read admission and publication, retired intent settlement, and silent-generation regression. |
Phone Automations could stay on Loading forever when a successful list or status request took more than 15 seconds. Each polling tick replaced the pending read before its reply arrived, even though the shared timeout is 30 seconds. The regression began in #31617; tracked in STA-13320.
Let the pending list/status pair finish. Polls skip it, while events and explicit refreshes coalesce into one following read. Explicit refresh still waits for fresh results, accepted actions retire older read authority before changing rows, and newer action warnings survive older refreshes. Cancellation applies only to catalog reads; actions and uncertain create outcomes retain their existing behavior.
Intended existing behavior: page cancellation releases its local waiter, while the uncancellable host request retains its physical slot until normal settlement. The shared timeout, protocol, saved data, and UI are unchanged.
Validation: the slow 20-second pair and 29-second status cases fail on unpatched main and pass with this change. Focused production-hook and request-boundary coverage passes 76 tests, including silent connection-generation replacement, existing create reconciliation, and bridge cancellation contracts. Independent correctness, architecture, and repair review passed; final CI is green; this is the full review path for ordering/lifecycle work. Mobile QA is the tests row for this invisible scheduling change; no app or agent run is required for this cut.