Skip to content

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

Merged
four-bytes-robby merged 1 commit into
mainfrom
fix/216-ingest-timer-leak
Nov 16, 2026
Merged

four-bytes-robby merged 1 commit into
mainfrom
fix/216-ingest-timer-leak

Conversation

@four-bytes-robby

@four-bytes-robby four-bytes-robby commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

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.

Written for commit e7866d5. Summary will update on new commits.

View guided diff Turn on auto-fix

@four-bytes-robby
four-bytes-robby merged commit 83161aa into main Nov 16, 2026
1 check failed
@four-bytes-robby
four-bytes-robby deleted the fix/216-ingest-timer-leak branch November 16, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Leaked slow-file timers revert status to "busy" after ingest completes (stuck at 100%)

1 participant