Skip to content

fix(codegraph): clean up watcher and worker pool on init failure - #295

Merged
ardelperal merged 1 commit into
mainfrom
fix/issue-241
Sep 3, 2026
Merged

fix(codegraph): clean up watcher and worker pool on init failure#295
ardelperal merged 1 commit into
mainfrom
fix/issue-241

Conversation

@ardelperal

Copy link
Copy Markdown
Owner

Summary

  • ensure CodeGraph.close() and ParseWorkerPool.destroy() always run on init/index failure
  • move close logic into a finally block and destroy the worker pool before re-throwing
  • extend watchdog coverage for Windows real disposable worktree cleanup

Validation

  • 5 focused tests pass, 1 POSIX-only test skipped on Windows
  • TypeScript typecheck passed
  • real disposable Windows worktree cleanup verified
  • native bounded review lineage review-8039f5997b0ec7e8 entered native_stop after refuter; delivery proceeds under ordinary repository policy

Closes #241

@ardelperal
ardelperal merged commit 3185421 into main Sep 3, 2026
5 checks passed
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.

codegraph init makes target worktree undeletable on Windows (SQLite handle leak + git WT metadata wipe)

1 participant