fix(onboarding): address trail 742 review findings

Commit

peyton-alt2mo ago
  • Defer ordering: enable's logging Close was registered after the bootstrap-finalize defer, so (LIFO) the log file closed before the deferred connect ladder ran and its warnings were silently dropped. Logging now initializes inside the bootstrap block, before the finalize defer (extracted initEnableLogging so callers control defer order).
  • Probe cache: createAndAwaitMirror wrote through right after CreateMirror, so a clone that failed during the awaited poll still left a green checklist for the cache TTL. Write through only on confirmed-ready (or on --no-wait, where there is genuinely nothing more to know).
  • status --json: setup rungs now carry detail and hint alongside state — the remediation command isn't derivable from the state name, per the Agent-Safe CLI Fallbacks convention.

Trail-Finding: 019f6d3c-1848-7aa7-918d-c6516a50fc23 Trail-Finding: 019f6d07-41fa-71d5-91d9-26ef8755761d Trail-Finding: 019f6cd3-b47c Co-Authored-By: Claude Fable 5 noreply@anthropic.com Entire-Checkpoint: 01KXR7HPN0FAFCHCPKB4MHM2SW

Checkpoints

Fix Onboarding History and Scan Cache Issues

Claude CodeFable 5
View session
Checkpoint 1