Skip to content

Let agents follow a thread after a mention#2113

Closed
austin-e wants to merge 4 commits into
block:mainfrom
austin-e:fizz/thread-follow
Closed

Let agents follow a thread after a mention#2113
austin-e wants to merge 4 commits into
block:mainfrom
austin-e:fizz/thread-follow

Conversation

@austin-e

Copy link
Copy Markdown

What this changes

Adds an optional conversation setting for an agent: Stay in thread after a mention.

When enabled, an authorized @mention opens a one-hour follow window for that one thread. Later messages in that thread are delivered to the agent as context without another @mention. Messages in every other thread and elsewhere in the channel are ignored.

This does not make the agent reply to every message. It only keeps the agent informed. The agent still decides when a response is useful.

Where to change it

In the agent editor, open Advanced settings and choose either:

  • Mention for each message (the existing default)
  • Stay in thread after a mention

Safety limits

  • Existing agents retain mention-only behavior unless changed.
  • Only an already-authorized author can open a followed thread.
  • Follow state is kept separately per channel and expires after one hour of inactivity.
  • It is in memory only, so an agent restart forgets old followed threads rather than listening more broadly.
  • At most 100 active threads are retained; the oldest one is removed first.
  • An agent leaving a channel loses all followed threads in that channel.

Implementation

  • Adds thread-follow as a harness subscription mode.
  • Locally filters the relay's broader delivery so only direct mentions or messages in an active followed thread reach the agent queue.
  • Persists the setting through Desktop records, API requests, snapshots, and runtime restart detection.
  • Adds the agent-editor control and explanatory copy.

Verification

Passed:

cargo test -p buzz-acp                 # 534 passed
pnpm --dir desktop typecheck
pnpm --dir desktop lint
cargo fmt --check
git diff --check

cargo test --manifest-path desktop/src-tauri/Cargo.toml could not run in this environment because CMake is not installed and audiopus_sys needs it to build bundled Opus.

npub19lzjypg34zx5a8s5ldhf8qf3t7utyl2acvnwagmacf0j6q0uk2rqgvqphn added 2 commits July 19, 2026 00:04
Co-authored-by: npub19lzjypg34zx5a8s5ldhf8qf3t7utyl2acvnwagmacf0j6q0uk2rqgvqphn <2fc5220511a88d4e9e14fb6e9381315fb8b27d5dc326eea37dc25f2d01fcb286@will.communities.buzz.xyz>
Signed-off-by: npub19lzjypg34zx5a8s5ldhf8qf3t7utyl2acvnwagmacf0j6q0uk2rqgvqphn <2fc5220511a88d4e9e14fb6e9381315fb8b27d5dc326eea37dc25f2d01fcb286@will.communities.buzz.xyz>
Co-authored-by: npub19lzjypg34zx5a8s5ldhf8qf3t7utyl2acvnwagmacf0j6q0uk2rqgvqphn <2fc5220511a88d4e9e14fb6e9381315fb8b27d5dc326eea37dc25f2d01fcb286@will.communities.buzz.xyz>
Signed-off-by: npub19lzjypg34zx5a8s5ldhf8qf3t7utyl2acvnwagmacf0j6q0uk2rqgvqphn <2fc5220511a88d4e9e14fb6e9381315fb8b27d5dc326eea37dc25f2d01fcb286@will.communities.buzz.xyz>
@austin-e
austin-e requested a review from a team as a code owner July 19, 2026 04:33
@austin-e

Copy link
Copy Markdown
Author

Closing for local product testing before review. I will reopen after the interaction has been tried.

@austin-e austin-e closed this Jul 19, 2026
Co-authored-by: npub19lzjypg34zx5a8s5ldhf8qf3t7utyl2acvnwagmacf0j6q0uk2rqgvqphn <2fc5220511a88d4e9e14fb6e9381315fb8b27d5dc326eea37dc25f2d01fcb286@will.communities.buzz.xyz>
Signed-off-by: npub19lzjypg34zx5a8s5ldhf8qf3t7utyl2acvnwagmacf0j6q0uk2rqgvqphn <2fc5220511a88d4e9e14fb6e9381315fb8b27d5dc326eea37dc25f2d01fcb286@will.communities.buzz.xyz>
@austin-e austin-e reopened this Jul 19, 2026
@austin-e

Copy link
Copy Markdown
Author

Reopened after local validation.

I also fixed a missing test import found when running the full Desktop test suite.

Final verification:

  • cargo test -p buzz-acp: 534 passed
  • pnpm --dir desktop typecheck
  • pnpm --dir desktop lint
  • cargo test --manifest-path desktop/src-tauri/Cargo.toml: 1,477 passed, 13 intentionally ignored
  • cargo fmt --check and git diff --check

Co-authored-by: npub19lzjypg34zx5a8s5ldhf8qf3t7utyl2acvnwagmacf0j6q0uk2rqgvqphn <2fc5220511a88d4e9e14fb6e9381315fb8b27d5dc326eea37dc25f2d01fcb286@will.communities.buzz.xyz>
Signed-off-by: npub19lzjypg34zx5a8s5ldhf8qf3t7utyl2acvnwagmacf0j6q0uk2rqgvqphn <2fc5220511a88d4e9e14fb6e9381315fb8b27d5dc326eea37dc25f2d01fcb286@will.communities.buzz.xyz>
@austin-e

Copy link
Copy Markdown
Author

Closing again so the updated thread-follow behavior can be tried locally before review.

@austin-e austin-e closed this Jul 19, 2026
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