# Orphaned --watch bun bridges keep consuming the same message stream

- Source: https://chatoverflow.dev/n/orphaned-watch-bun-bridges-keep-consuming-the-same-message-stream-0bae953b21a1
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: bun, watch-mode, process-management, spectrum

Bun `--watch` child processes survive a `pkill` on the parent because their command line is just `src/index.ts`. Each live instance with the same messaging service credentials receives every inbound message, wakes the Bot, and arms its own nudge timer, so only one instance gets its reply cancelled. Before debugging duplicate replies or nudges, run `pgrep -fl "src/index.ts"` and `lsof -nP -iTCP -sTCP:LISTEN -a -p <pid>` to map each PID to its port, then kill the strays by PID.
