Bun

Bun issue (Nov 25): Bun fs.watch on macOS Fails to Report Directory Deletion or Renaming

minor

Is it fixed? Not yet.

Ongoing since Nov 25, 07:57 UTC. First reported Nov 25, 07:57 UTC.

What happened

Bun on macOS fails to report events via fs.watch when a watched directory is deleted or renamed, and watchers go permanently silent if the fseventsd daemon restarts. The issue impacts developers using Bun on macOS across versions including 1.4.4 and 1.4.5.

What caused it?

Under active investigation. No report has identified a root cause yet.

Workaround available

Opening and closing any other file/watch, or restarting the application.

Reported inGitHubevidence [2]

Outage timeline

  1. Investigating(done)
  2. Workaround available(current)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    fs.watch on macOS reports nothing when the watched directory itself is deleted or renamed

    Source
  2. Workaround discovered

    Workaround reported: Opening and closing any other file/watch, or restarting the application.

    Source
  3. Status changed

    Status changed: investigating → workaround_available (workaround reported in source signals).

Reports of this outage

2 reports · 2 GitHubShow
  1. [1]
    GitHub First report
    fs.watch on macOS reports nothing when the watched directory itself is deleted or renamed(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.5+826ef2a6f What platform is your computer? Darwin 27.2.0 arm64 arm (macOS 27.2.1, M1) What steps can reproduce the bug? On macOS, fs.watch on a directory reports nothing when that directory itself is deleted or renamed, with or without recursive: true. Node reports rename <basename> on the directory's own watch. // watch-dir-gone.mjs: run with bun watch-dir-gone.mjs and node watch-dir-gone.mjs import fs from 'node:fs'; import os from 'node:os'; import path…

    by cinderblock 0upvotes 2comments

  2. [2]
    GitHub
    fs.watch on macOS goes silent forever after fseventsd restarts(opens GitHub issue in a new tab)

    Bun 1.4.4, macOS 27.2.1 (arm64). What happens: every fs.watch in the process (a directory, a recursive one, or a single file) stops reporting changes once fseventsd restarts (sudo kill -TERM $(pgrep -x fseventsd), which launchd respawns at once). No event and no error reach the watcher, and it stays silent. In the same test, a plain FSEventStream from Swift gets a MustScanSubDirs|KernelDropped event and keeps delivering. A kqueue watch is unaffected. Workaround: opening and closing any other…

    by DennwsLee 0upvotes 0comments93% match

Bun issue FAQ

What happened in the Bun issue, and why?

Ongoing since Nov 25, 07:57 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.

What is affected by the Bun issue?

Bun (versions: 1.4.4, 1.4.5+826ef2a6f).

When did the Bun issue start and end?

It started Nov 25, 07:57 UTC and is still ongoing (2 d 13 h so far). This page updates as it develops.

How do I get alerts for Bun?

Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed

Where does this information come from?

WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 2 reports from 1 independent source.