You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HooksArea: what it touches
Bug FixesKind: in v2.1.334,
Bug FixesSection of the release
What
A hook is a command you set up to run automatically when something happens. When the working folder changes, the CwdChanged hook runs, and its result updates which files the FileChanged hook watches.
Previously, the watch list was replaced every time a CwdChanged run finished. If you changed folders several times in quick succession, an older run that finished late could overwrite the result of a newer one. Claude Code now numbers each run and accepts only the result of the latest.
Why
Moving between folders quickly no longer risks leaving FileChanged watching files from a folder you have already left.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed CwdChanged and FileChanged hooks: watchPaths from HTTP hooks being ignored, and a slower hook from an earlier cd replacing the paths…