Fixed (all verified against current code, tests falsified where testable):
- homeThreads.persistHomeThreadId: two racing creators each persisted
their own id and returned different Home threads. Now a compare-and-set
against the designation the caller read — not never-overwrite, because
the self-healing path legitimately replaces a stale designation.
- HermesGatewayBroker.createEnrollment: when the instance vanished
mid-enrollment the skipped settings write still minted and returned a
token whose `hermes t3 connect` could never authenticate. Committed
settings are now inspected after the write (the renameInstance /
removeInstance pattern) and enrollment fails instance-not-found.
- HermesAdapter.stopAll: only ProviderAdapterRequestError was caught, so
a session exiting mid-sweep aborted every remaining session's stop.
SessionNotFound is now a no-op — an exited session needs no stop.
- ProviderModelPicker: `modelPicker.toggle` on a Home thread armed the
scroll-lock effect with no popover rendered, locking page scroll with
nothing to dismiss. The static branch forces the menu closed.
- mobile NewTaskDraftScreen: the picker-fallback guard read the filtered
workspace list, so an agent-only environment sat on "Loading task"
forever. It now reads the pre-filter list.
Skipped with evidence (NOT-REAL unless noted): homeThreads empty-patch
(caller re-reads; failing is worse), correlator sweep-vs-timeout (only
per-request timeout is 6s ping vs 90s maxAge), duplicate requestId
(UUIDv4/monotonic — no reachable collision), both ProviderService
lifecycle overwrites (reconcile closes the old scope before building the
replacement; adapter context guard drops stale frames), revokeInstance
ordering (mooted by 3bc3f45bf per Macroscope itself), pendingApprovals
optimistic delete and ingestion fallback attribution (documented
deliberate designs; NOT-WORTH-IT).
Co-Authored-By: Claude Fable 5 <[email protected]>