Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.222 ·

File watcher no longer emits errors nobody is listening for

File watching errors no longer blow up as unhandled crashes when nothing is listening for them.

You'll notice No documentation found Bug Fixes
JSON All of v2.1.222
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
File WatcherArea: what it touches
Bug FixesKind: in v2.1.222,
Bug FixesSection of the release
What

The watcher checks the error listener count before emitting, so a watch error or an error during a pending write can no longer surface as an unhandled 'error' event.

Details
  • Check sits alongside the existing ENOENT/ENOTDIR filtering and the ignorePermissionErrors option.
  • In the pending-write path, when no error listeners are registered the pending write is discarded rather than emitting an ERROR event.
Evidence

_pendingWrites, ignorePermissionErrors

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Names in the bundleignorePermissionErrors

See this entry in the whole of v2.1.222 →

Feedback