You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: folder annotation server hangs when switching to another Markdown file #1313
Thanks for the detailed report, reproduced and diagnosed. AI-assisted triage summary below.
TLDR: Confirmed, and it is not new in 0.27.2. The folder file tree's content watcher blocks the whole local server during its initial directory scan (about 40ms per directory on macOS), and on a disconnect the watcher is rebuilt from scratch, so on a large repo the freeze can feed itself. It has been latent for several releases; your repo is likely just big enough to make it unbearable.
A patch is in progress now: the watcher is moving off the request path (server stays responsive while it warms), reconnects reuse the warm watcher instead of rescanning, and macOS gets the native recursive watcher, which we measured at roughly 0ms versus 9 seconds for the current scan on a 228-directory tree.
If you want to confirm the diagnosis on your side, two quick things help:
From the repo root: find . -type d -not -path '*/node_modules/*' -not -path '*/.git/*' | wc -l
If you open the folder and wait a few minutes without clicking, does the pane eventually come back?
Update with curl -fsSL https://plannotator.ai/install.sh | bash (or your usual method). Folder sessions now answer immediately while the file watcher warms in the background, reconnects reuse the warm watcher instead of rescanning, and macOS uses the native recursive watcher (about 3ms to start versus 9 seconds before on a 228-directory repo). The regression test that pins this covers a 780-directory tree that previously froze the server for 79 seconds and now answers in under one second.
If you still see anything off on your repo after updating, please reopen with the directory count from the earlier comment.
Activity
backnotprop commentedon Aug 13, 2026
Thanks for the detailed report, reproduced and diagnosed. AI-assisted triage summary below.
TLDR: Confirmed, and it is not new in 0.27.2. The folder file tree's content watcher blocks the whole local server during its initial directory scan (about 40ms per directory on macOS), and on a disconnect the watcher is rebuilt from scratch, so on a large repo the freeze can feed itself. It has been latent for several releases; your repo is likely just big enough to make it unbearable.
A patch is in progress now: the watcher is moving off the request path (server stays responsive while it warms), reconnects reuse the warm watcher instead of rescanning, and macOS gets the native recursive watcher, which we measured at roughly 0ms versus 9 seconds for the current scan on a 228-directory tree.
If you want to confirm the diagnosis on your side, two quick things help:
find . -type d -not -path '*/node_modules/*' -not -path '*/.git/*' | wc -lWill update here when the patch ships.
fix(annotate): stop the folder watcher freezing the server (#1314)
backnotprop commentedon Aug 13, 2026
v0.27.3 is out with the fix: https://github.com/backnotprop/plannotator/releases/tag/v0.27.3
Update with
curl -fsSL https://plannotator.ai/install.sh | bash(or your usual method). Folder sessions now answer immediately while the file watcher warms in the background, reconnects reuse the warm watcher instead of rescanning, and macOS uses the native recursive watcher (about 3ms to start versus 9 seconds before on a 228-directory repo). The regression test that pins this covers a 780-directory tree that previously froze the server for 79 seconds and now answers in under one second.If you still see anything off on your repo after updating, please reopen with the directory count from the earlier comment.
backnotprop commentedon Aug 13, 2026
Hey @abanoub-ashraf, we think v0.27.3 fixed this. Can you update and let us know if folder annotate works smoothly on your repo now?
abanoub-ashraf commentedon Aug 14, 2026
hi, i tried it now after updating, now it works fine thanks a lot :))
fix(annotate): stop the folder watcher freezing the server (backnotpr…