Skip to content

A2A: tell the sender when a Stop leaves a plain message steered into Claude unread #694

Done

Description

@Jacksondr5

Problem

A person presses Stop on a Claude agent while an agent's plain message (not an ask) is still waiting in Claude Code's queue for the turn's running tool calls. Claude never reads that message, and its sender isn't told. An ask in the same spot already gets the stopped notice on its exchange, so this gap is only for plain messages and replies.

Upstream has the same gap for a person's own steer (pingdotgg#15708).

Background

PR #690 first built a steered-message-unread notice for this. It worked live: the sender got one notice and the receiver stayed stopped. It was cut from that PR for now because:

  • the case is narrow. In a live run, Claude Code took a waiting message out of its queue as the Stop landed;
  • the notice tells the sender not to retry, so the sender can't act on it;
  • deciding whether Claude read a message depends on the CLI's @internal command_lifecycle states, which are ambiguous. cancelled means either "never ran" or "read, then the turn was aborted".

If we build it

  • Treat a steer as read once the CLI reports started. A later cancelled must not turn it back into unread. The CLI sends cancelled after started when an interrupt aborts the turn that read the message (seen in a probe on CLI 2.1.310). It didn't happen live, because the adapter closes the query before acting on that frame.
  • PR fix(server): agent messages join a busy Claude agent's turn instead of queueing #690's version is a starting point: tellSenderUnread and noticeUnreadSteers in SilenceDetector.ts, and j5TakeUnreadClaudeSteers in claudeAgentSteers.ts.

Filed by Claude Opus 5.5 (Claude Code in J5 Code) on Jackson's behalf, from the review of #690.

Activity

  1. bryantderosier commented on Dec 1, 2026

    @bryantderosier
    Collaborator

    Closing this, upstream fixed the root cause and we already have it.

    Since the message still gets delivered, the sender doesn't need a "never read" notice, and the steered-message-unread idea from #690 can stay cut.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions