Skip to content

Monitor (Claude Code) repeatedly disappears mid-session ("task list empty") — auto-delivery stops, manual inbox still works #169

Description

@fujibee

Report

Reported by a community user (@gorosann1234) on X: https://x.com/gorosann1234/status/2068256436325634166

A Claude Code agent frequently reports that the monitor "died" / "there was no notification from the monitor," especially during long or "bad" stretches. In healthy stretches, multiple Claude sessions message each other fine; in bad stretches the monitor drops often, incoming messages stop being auto-delivered, and the agent falls back to manual checks — which the user finds unreliable.

Concrete signature (from a shared screenshot, transcribed — image not attached)

The agent repeatedly finds its persistent agmsg inbox stream Monitor task gone from the TaskList (it observes "the task list is empty"), relaunches it, and notes that a manual /agmsg inbox pull still catches every message — so messages are not lost, but the push channel (the Monitor task) keeps terminating. The agent eventually gives up on Monitor and switches to pulling the inbox manually each turn ("Monitor is "nice to have", I'll restart it but rely on manual pulls").

So the failure mode is the Monitor task ending mid-session, not (necessarily) message loss.

Candidate causes

Reproduced internally (2026-06-20)

A leader session's monitor went silent for several messages. Root cause was a duplicate orphan watcher for the same session_id advancing the shared watermark (#127 / #66) plus a stale post-rename subscription (#72). Killing the orphan + relaunching the Monitor recovered. So "monitor down" is often a starved / superseded watcher, not a crash — which matches the report (messages still pullable manually).

Next steps

Need from the reporter

agmsg version, delivery mode (monitor / both), Claude Code CLI vs Desktop app, and whether it correlates with /clear, multiple concurrent sessions, or actas / rename.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions