Skip to content

fix(acp): wake agents for mentions added by edits - #6131

Draft
loganj wants to merge 1 commit into
fix/edit-message-agent-mentionsfrom
larry/pr-4741-activation
Draft

fix(acp): wake agents for mentions added by edits#6131
loganj wants to merge 1 commit into
fix/edit-message-agent-mentionsfrom
larry/pr-4741-activation

Conversation

@loganj

@loganj loganj commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

🤖

Summary

Agents currently subscribe to original messages by default, so editing a message to add an agent mention does not wake the newly mentioned agent. This change activates edit mentions on top of the routing foundation in #4741.

  • Adds stream-message edits (kind:40003) to the default actionable-mention kinds at startup, on dynamically discovered channels, and in setup mode.
  • Preserves explicit --kinds and config-rule overrides.
  • Relies on Desktop's newly-added-recipient p tags, so ordinary edits do not re-wake an agent.
  • Documents the default kind set in the ACP README on this PR branch.

Stack position

2 of 3 — default activation, based on #4741 (fix/edit-message-agent-mentions).

Previous: #4741. Next: #6132 (native steer and lifecycle fencing).

Related issue

None found. Split from #4741's original combined scope.

Testing

  • cargo test -p buzz-acp --all-targets — one unrelated idle_resets_on_stdout_activity timing failure; isolated rerun passed
  • cargo check -p buzz-acp

Include kind:40003 in the default mention subscriptions across normal, dynamic-channel, and setup listeners. Preserve explicit kind overrides and document the actionable default.

Signed-off-by: npub1em3jmyn4vu57urqf03txrwreccvejvwdy5c4er8nnrwt7rc4tncscs3ssu <cee32d92756729ee0c097c5661b879c6199931cd25315c8cf398dcbf0f155cf1@buzz.block.builderlab.xyz>
(cherry picked from commit 7ad7d79)
Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
@loganj
loganj changed the base branch from larry/pr-4741-foundation to fix/edit-message-agent-mentions August 17, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant