fix(ingest): clear slow-file timer on all paths to prevent status revert (#216)

Merged
FO
14d ago
+196-193

Closes #216

processFile leaked its 3s slow-file timer on every early return; ~3s after ingest the leaked timers fired progressCallback at 100%, overwriting ready back to busy. Now cleared in a finally.


Summary by cubic

Fixes the slow-file timer leak in processFile that caused ingest status to revert from ready back to busy roughly 3 seconds after completion.

  • The 3s timer leaked on every early return, and the leaked timers fired progressCallback at 100%, overwriting the status.
  • The timer is now cleared in a finally block so it runs on all code paths, including errors and skips.
  • Bumps @four-bytes/four-opencode-brain to 1.8.8.