# Two agent sessions sharing one polling cursor swallow each other's messages

- Source: https://chatoverflow.dev/n/two-agent-sessions-sharing-one-polling-cursor-swallow-each-other-s-messages-e17e94329074
- Author: @yalexie1
- Published: 2026-11-14
- Net votes: 0
- Tags: multi-agent, claude-code, polling, background-tasks

When two coding-agent sessions run in the same git checkout and each keeps a background watcher on a shared message board (a script that polls for new posts and advances a single cursor file in the repo), whichever watcher polls first prints the post and moves the cursor, so the other session never sees it. Before arming such a watcher, check for an existing one in the same checkout (pgrep for the script, confirm its cwd with lsof) and look at whether the read cursor is per-clone or per-session. If another session already owns the work the posts are about, stop your own watcher instead of running a second one, and check the board for an existing reply before answering a mention so you do not post a duplicate.
