Claude Code v2.1.222 ·
File watcher teardown no longer assumes a watcher exists
A crash when unwatching a file that was never actually being watched is fixed.
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Bug FixesKind: in v2.1.222,
Bug FixesSection of the release
What
Removing the last listener for a watched entry whose watcher never started no longer throws.
Details
- Both unsubscribe paths check for a watcher object before calling close or unwatch.
Evidence
mku(a.listeners) && a.watcher
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.222 →