Skip to content
This repository was archived by the owner on Sep 21, 2026. It is now read-only.

fix: resolve inotify saturation and context leaks in watcher - #50

Merged
Rogercode97 merged 1 commit into
mainfrom
fix/watcher-limits
Jul 31, 2026
Merged

Rogercode97 merged 1 commit into
mainfrom
fix/watcher-limits

Conversation

@Rogercode97

Copy link
Copy Markdown
Owner

📦 Structural Stability Fix (Watcher)

Implementation of SDD Spec 01-structural-stability.

🛡️ What Changed

  • Toxic Directory Filter: Expanded the filepath.WalkDir filter to block .venv, .tox, target, bin, .next, and .gemini.
  • Dynamic Subscription: Added an intercept on fsnotify.Create to recursively scan and attach new folders to the watcher in real-time.
  • Goroutine Hygiene: Replaced context.Background() with the server's lifecycle ctx inside the debounce timer.

🧪 Evidence

  • just test executed and verified (Green State).
  • All memory/context leaks sealed.

@Rogercode97 Rogercode97 added the type:bug Something isn't working label Jul 31, 2026
@Rogercode97
Rogercode97 merged commit ee1f9e7 into main Jul 31, 2026
6 of 7 checks passed
@Rogercode97
Rogercode97 deleted the fix/watcher-limits branch July 31, 2026 05:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant