Docs native launch hang (0.1.7/0.1.8): landed 84d1008, released 0.1.9 (11) open
On branch fix/workspace-init-loop
Opened after the merge — this branch was squash-merged as 84d1008 without its discussion first, against this repo's rule. Recording the reasoning and review here now.
Problem. Paul (2026-11-19): Docs "crashing" on Mac and iOS. A sample from his other Mac showed Docs 0.1.7 (9) with the main thread at 100% in SwiftUI's transaction flush: DocsAccountWindow.body → DocsWorkspace.init → DocsOfflineAccount.account → drainer.sessionRestored/retryNow. On iPhone the watchdog killed it at launch, which TestFlight reported as a crash on 11-16 (no crash log attached). It only happens with a saved account, so a clean machine launched fine.
Cause. DocsWorkspace.init (run on every window body pass) called DocsOfflineAccount.account, which for a known account read and then mutated observed drainer state and assigned the observed supplier closure, so each pass invalidated the next. Present since d40fbd1 (10-01).
Fix. account() is a pure lookup-or-create, supplier is @ObservationIgnored, and the workspace resumes its account from .task. WorkspaceInitTests builds a workspace inside observation tracking as a window body does; it fails on the old code (verified) and passes now. Also: iPhone declares its orientations and exempt encryption.
Review. Claude Fable (claude-fable-5): APPROVE, three LOW findings — two addressed (comment, a workspace-level test), the third is pre-existing (server-account document window loses sync when the home window leaves that account; follow-up). Hub CI passed at 9a3c421.
Shipped. Mac 0.1.9 (11) published (feed 7c755f6, sha verified); iOS 0.1.9 (11) in TestFlight (Oficina internal). Paul's other Mac is on 0.1.7 and can't self-update while hung — manual install needed.