Forum thread mentions never reach managed agents
Describe the bug
A managed agent that is a member of a forum channel never responds to an @mention posted inside a forum thread. It stays silent, logs nothing, and reports no error, so the agent looks perfectly healthy while ignoring every mention.
The cause is the subscription filter. In crates/buzz-acp/src/config.rs, SubscribeMode::Mentions builds a fixed kind list:
let kinds = config.kinds_override.clone().unwrap_or_else(|| {
vec![KIND_STREAM_MESSAGE, KIND_WORKFLOW_APPROVAL_REQUESTED, KIND_STREAM_REMINDER]
});
That is 9, 46010, 40007. Forum posts (45001) and forum comments (45003) are absent. In crates/buzz-acp/src/filter.rs an event whose kind is not in the list is rejected before the require_mention p-tag check ever runs, so the mention is discarded at the transport layer.
Neither forum kind appears anywhere in the buzz-acp crate.
Steps to reproduce
- Create a forum channel and add a managed agent to it as a bot
- Create a thread and mention the agent inside it
- The agent never wakes up. Its log shows no incoming event.
- Mention the same agent in a stream channel: it responds normally
Expected behavior
Mentioning an agent in a forum thread should reach it, same as in a stream channel. The UI lets you add agents to forum channels, so the mention path should work there.
Workaround
Setting the environment variable below restores it. The variable replaces the default list rather than extending it, so the three original kinds have to be repeated:
BUZZ_ACP_KINDS=9,40007,46010,45001,45003
This is safe: require_mention stays enabled and its p-tag check is kind-agnostic, so agents still only wake when tagged.
Suggested fix
Add KIND_FORUM_POST and KIND_FORUM_COMMENT to the SubscribeMode::Mentions defaults in both places they are constructed (build_channel_filters and the dynamic single-channel path). Routing on the p-tag rather than on kind would close the whole class of problem, but adding the two kinds is the minimal change.
Version and platform
- Buzz version: 0.5.6
- OS: Windows 11 (10.0.26200)
Additional context
Two follow-on effects are visible once mentions do arrive, filed separately: typing indicators and the persistent agent audience are both stream-only in the desktop UI.
I’m taking this. I confirmed on current main that both default mention-filter constructors omit KIND_FORUM_POST and KIND_FORUM_COMMENT. I’ll keep the change focused: add those kinds in the static and dynamic paths, add regression coverage for both, and open a DCO-signed PR referencing #5249 after the targeted and full checks pass.
🤖 Reproduced again on Buzz Desktop 0.5.20-block / macOS (Apple Silicon) using two locally managed agents and a private forum.
Observed:
- The forum root was kind
45001and contained validptags for both agent pubkeys. buzz feed get --types mentions,needs_actionreturned the post for the agent identity.- The agent was online, subscribed to the forum channel, and its ACP log showed no turn for the forum post.
- One agent was initially not a forum member; adding it fixed membership but did not retroactively dispatch the forum mention.
- Sending a kind
9message in the same forum channel with the same twoptags immediately provided the working dispatch path.
Current main at 1c8321cd08feb597f8bcff5195c21148fb3e98ed still builds the default SubscribeMode::Mentions kind list without KIND_FORUM_POST / KIND_FORUM_COMMENT in crates/buzz-acp/src/config.rs (resolve_channel_filters and the dynamic single-channel path).
User-visible impact: Desktop allows agents to be added and mentioned in a forum, and the mention appears in the feed, but there is no response or error. A normal stream-message mention in the forum channel is a functional workaround.
Thanks for the detailed reproduction, @jbroadnax4. #5287 addresses the missing forum post/comment kinds in both default mention-filter paths, with regression coverage and unchanged p-tag enforcement. It is still awaiting first-time-contributor workflow approval, so hosted CI has not run yet. Linking it here so the existing fix is easy to find.