Files
pipelines/app/notes/runs-live-refresh.md

2.4 KiB

Runs live refresh (run 276)

The shared transport forwards raw envelopes. A read-only subscription to the existing local server for run 276 returned type: run_event with the summary nested under run_event, followed by the subscribe acknowledgement. Runs and attention previously treated the outer envelope as a delta. Existing controller fixtures used extracted deltas, so they missed the production shape.

runEventPayload now extracts the payload unchanged at both consumers. Sparse fields and future fields are not reconstructed or dropped by extraction; existing folding, generation ownership, deletion tombstones, filters and debouncing remain in charge. Real-envelope tests cover a new row, progress, completion detail refresh, and attention transition deduplication. No polling or new subscriptions were added.

Foreground return also skipped open run routes, and a list invalidation refreshed only the list. Runs routes now invalidate on resume and the retained screen resyncs both list and selected detail. Simultaneous connection/refresh tokens coalesce to one resync. Editing/transient-route guards remain. The app lifecycle regression starts at an actual run URL and completes the initial requests before resuming.

Focused watchdog: 53 passed across runs controller/screen, app lifecycle/session, and attention controller. Analyzer clean. Logs: /tmp/memwatch/out.J0eKmT and /var/folders/jp/q0qvjyg54fl_c5vhhk1ylz2m0000gn/T/flutter-analyze.k496jJ. The subsequent controller-only rerun passed 18 tests and also exercises the completion evidence fetch (/tmp/memwatch/out.L2WhC1). No real runs were started or changed; the inspection socket was closed. No server restart, commit, deploy, or pipeline definition change. No rendered capture here; the manager owns consolidated browser verification and delivery. The failed first implementation stage recorded a partial file capture; these direct edits are the actual source evidence for recovery, not a claim that its capture became complete.

Isolated release acceptance

Rebased the focused source delta on 8e041af6 in a separate release worktree, preserving the original edits. The current candidate passed 47 focused tests (/tmp/memwatch/out.tMxVnO) and analysis (flutter-analyze.0FMxzq). The full-app capture fixture adds opt-in liveRun=1: run 7 starts running, then a server-shaped nested completion envelope arrives seven seconds after list subscription. This changes fixture data only, with no live run mutations.