cmux-next: resume every workspace agent chat at launch

AU
19d ago
+1854-150

Summary

Fixes #22292.

Saved chat agents currently start only when their lazy pages open. This change starts their recorded sessions from this Mac’s confirmed live workspace tree, including workspaces that have never been selected. It routes local and Chief-home chats through their owning host without constructing hidden pages. The terminal restoration path is already on the base (818afdd0838); this completes the chat path from #22304.

Each launch attempts a session once and reports failures. Quit cancels and drains launch requests, then ends only the exact sessions this launch attempted. The local-only cleanup operation preserves resumable chats, fences pending starts, and leaves shared daemons and unrelated chats alive.

Size: Startup, Chief-home routing, and quit cleanup form one agent lifecycle change. The diff includes regression fixtures for those paths, cancellation and stop races, shared-daemon isolation, and protocol authorization; the host protocol move preserves its existing implementation.

Validation in progress

Head 39fd97d9fac752a5c83bdd27fd8cfba7e86898c9 is rebased onto a6e72b7b54dd97015b85fa378df43b108a5cb3f4 and GitHub reports it mergeable. Earlier validation comments refer to superseded revisions.

  • Original red proof: test-only baseline 264632605b0c1cbbe3998bb829c8ebbcce773afb, fleet job e25223f13188998bbd6cdac1: AgentChatsStartupTests failed with restored workspace agents start missed its deadline.
  • Current Swift suites: controller step 8f11c764320671cb3540e768 (queued).
  • Full Rust/cross-platform verification: run 40737782396; test-first cleanup regression step 256c6194b49e22bb516cb62d on 86ba87581fd0ee1157d9bd7ef98b98ce002b9a57.
  • Static pre-push gate, Swift syntax, webviews check, and web pre-push lint pass. The unrelated landing-hook test now passes all 29 tests locally.
  • Nightly-next Release compile: controller step c7d5c6ef6238e1bc202334fa (queued).
  • Hibernation regression before its repair: step d85b55aa0ba11a7d491dc449 on 0b2a60b40221967efcd4f5919cc34c1aa0ab3364.
  • Independent source review passed on this head; canonical review is still running.
  • App packaging is blocked: controller admission replaces the operator-required 250 GiB disk floor with 20 GiB. Queued app builds were cancelled and fleet feedback 631a2bc659dd6eea52ade459 records the mismatch.

Observed / Not run

No native builds or tests ran on the developer Mac. Current-head native tests have no completed verdict yet. Signed publication, notarization, and live GUI dogfood have not run. Independent exact-head source-review evidence is posted for the risk/defaults gates; native verdicts remain pending.

Changelog

Fixed: Saved chat agents resume across every workspace at launch.

No capture: launch-time agent lifecycle behavior; no visual layout change.