block / block/buzz

Agents should reply to the exact message that triggered them

Open
#4,072 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
32.7k
Forks
4.3k
Avg merge
1d 13h
Merged PRs (30d)
253

Description

### Motivation

When a user is already talking with an agent inside a thread, the agent should make it clear which message it is answering. Today, the response can point to the thread root instead of the exact triggering message, which makes conversations with multiple messages difficult to follow and makes the agent feel less proactive.

### Proposed solution

For human-facing agent turns:

- Reply to the exact message that triggered the agent turn.
- Preserve the author mention for that parent message.
- Keep top-level replies anchored to the triggering message, which becomes the new thread root.
- Preserve the existing agent-to-agent behavior so coordination turns are not unnecessarily flattened.

Add regression tests covering nested human replies, top-level messages, agent-only mentions, and agent-to-agent turns.

### Alternatives considered

Keep anchoring every human-facing reply to the thread root. This keeps threads flat, but loses the direct relationship between the agent response and the specific message being answered.

### Additional context

This behavior was observed while using Buzz Desktop. The existing message UI already supports rendering direct replies; the change is to make the agent harness consistently target the triggering event.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.