mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-06 07:01:45 -05:00
Use a discriminated SyncDecision union so connection.ts no longer needs non-null assertions on the cached state. Thread the resolved CliConfig through withConnection's callback to drop duplicate resolveConfig calls in the sync and budgets commands. Extract an errorCode helper and replace the existsSync+readdirSync TOCTOU pattern in the reader-wait polling loop with a single readdir that tolerates ENOENT. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>