feat(agents): add contextual agent conversations - #4688
Open
BrianInAz wants to merge 9 commits into
Open
Conversation
Shared test-only fixture for audience selection and reply placement, with pure Desktop/Rust/Dart resolvers that implement the contract and device-local unaddressed-channel mode storage key. Composer/ACP/UI wiring remains later. Signed-off-by: Brian Charbonneau <github@briancharbonneau.com> (cherry picked from commit 78458eb) Signed-off-by: Brian Charbonneau <github@briancharbonneau.com>
Add device-local Unaddressed channel messages setting, merge pure policy into mention send p-tags, and show a composer audience hint. Explicit mentions still win; mentions-only disables implicit channel-agent notify. Signed-off-by: Brian Charbonneau <github@briancharbonneau.com> (cherry picked from commit 88a1161) Signed-off-by: Brian Charbonneau <github@briancharbonneau.com>
Share pubkey normalization, keep composer hint on the same resolver as send, skip no-op mode writes, and expand coverage for persistent audience, load errors, direct DMs, and manual removal. Signed-off-by: Brian Charbonneau <github@briancharbonneau.com> (cherry picked from commit d6978d4) Signed-off-by: Brian Charbonneau <github@briancharbonneau.com>
…eads Wire the shared contextual-conversation ReplyPlacement policy into ACP prompt reply anchors. Human-facing channel turns with one addressed agent stay top-level; two or more open a shared thread at the human event; thread follow-ups keep anchoring to the root; agent-only traffic remains unconstrained. Signed-off-by: Brian Charbonneau <github@briancharbonneau.com> (cherry picked from commit 300b7b5) Signed-off-by: Brian Charbonneau <github@briancharbonneau.com>
Add Flutter settings for Unaddressed channel messages, SharedPreferences storage matching Desktop, and merge pure policy audience into channel sends. Also cargo-fmt ACP after reply-placement work. Signed-off-by: Brian Charbonneau <github@briancharbonneau.com> (cherry picked from commit bad5392) Signed-off-by: Brian Charbonneau <github@briancharbonneau.com>
Register a Playwright smoke that opens Settings › Agents, toggles Notify all / Mentions only, and checks device-local persistence. Signed-off-by: Brian Charbonneau <github@briancharbonneau.com> (cherry picked from commit 3796ea4) Signed-off-by: Brian Charbonneau <github@briancharbonneau.com>
Biome format on policy unit tests; provide required SendMessage constructor args in Flutter unit tests after audience wiring. Signed-off-by: Brian Charbonneau <github@briancharbonneau.com> (cherry picked from commit af9d56e) Signed-off-by: Brian Charbonneau <github@briancharbonneau.com>
Move contextual-audience logic out of MessageComposer so the file no longer grows past the line budget; format mobile SendMessage unit tests. Signed-off-by: Brian Charbonneau <github@briancharbonneau.com> (cherry picked from commit 445100d) Signed-off-by: Brian Charbonneau <github@briancharbonneau.com>
Authored @agent mentions must survive the direct-conversation audience resolver so existing DMs can still expand to include a newly mentioned relay agent. Extracted composer audience helpers stay under the file-size ratchet. Signed-off-by: Brian Charbonneau <github@briancharbonneau.com> (cherry picked from commit ff08ba0) Signed-off-by: Brian Charbonneau <github@briancharbonneau.com>
Author
BrianInAz
added a commit
to BrianInAz/buzz
that referenced
this pull request
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Related issue
None found. #1743 is adjacent but concerns offline mention delivery, which this PR does not change.
Behavior
Protocol compatibility
This uses existing Nostr
pand reply tags. It does not add event kinds, relay behavior, HTTP endpoints, server-side fan-out, or release workflow changes.Testing
just cicargo test -p buzz-acp --lib(676 passed)just mobile-checkpnpm --dir desktop test(4,154 passed)unaddressed-channel-agent-mode.spec.tssmoke test (1 passed)Rebased and validated on
block/buzz@feccf4eabc23fdba94ce3537a194357ed17b197c. All commits carry DCO sign-off. Fork-only private-CA and release lifecycle changes are intentionally excluded.