Skip to content

fix(mobile): add mentioned agents to channels#1696

Open
brow wants to merge 3 commits into
mainfrom
tomb/bot-1263-mobile-agent-mention
Open

fix(mobile): add mentioned agents to channels#1696
brow wants to merge 3 commits into
mainfrom
tomb/bot-1263-mobile-agent-mention

Conversation

@brow

@brow brow commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

What changed?

Mobile compose now tracks selected mention candidates through send, filters them against the final text, and adds selected non-member relay agents to the channel as bot members before publishing the mention message.

This also adds a channel-member helper for kind 9000 add-member events and test hooks for exercising relay publish acknowledgements in widget tests.

Why?

Mentioning an agent from mobile should match desktop’s spawn-by-mention behavior for relay agents shared with the user. Without this, mobile could send a p-tagged mention for a non-member agent without preparing the channel membership that lets the agent respond.

How is it tested?

Added tests:

Focused existing validation:

  • Mobile compose widget test suite
  • Mobile analyzer

Note: Claude pre-review could not run locally because Claude Code is not authenticated in this environment; I completed an independent read-only review of the local diff instead.

Co-authored-by: npub1shglkdhngx3hrnhf4gf8vhpqdrmeludctechdvpwd3988zzs7ncq2cmtxu <85d1fb36f341a371cee9aa12765c2068f79ff1b85e7176b02e6c4a738850f4f0@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1shglkdhngx3hrnhf4gf8vhpqdrmeludctechdvpwd3988zzs7ncq2cmtxu <85d1fb36f341a371cee9aa12765c2068f79ff1b85e7176b02e6c4a738850f4f0@sprout-oss.stage.blox.sqprod.co>
@brow

brow commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@brow

brow commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

@builderbot review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

Comment thread mobile/lib/features/channels/compose_bar/helpers.dart Outdated
Comment thread mobile/test/features/channels/compose_bar_test.dart Outdated
Co-authored-by: npub1shglkdhngx3hrnhf4gf8vhpqdrmeludctechdvpwd3988zzs7ncq2cmtxu <85d1fb36f341a371cee9aa12765c2068f79ff1b85e7176b02e6c4a738850f4f0@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1shglkdhngx3hrnhf4gf8vhpqdrmeludctechdvpwd3988zzs7ncq2cmtxu <85d1fb36f341a371cee9aa12765c2068f79ff1b85e7176b02e6c4a738850f4f0@sprout-oss.stage.blox.sqprod.co>
@brow brow marked this pull request as ready for review July 10, 2026 00:00
@brow brow requested a review from a team as a code owner July 10, 2026 00:00
@brow brow enabled auto-merge (squash) July 10, 2026 00:00
Co-authored-by: npub1shglkdhngx3hrnhf4gf8vhpqdrmeludctechdvpwd3988zzs7ncq2cmtxu <85d1fb36f341a371cee9aa12765c2068f79ff1b85e7176b02e6c4a738850f4f0@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1shglkdhngx3hrnhf4gf8vhpqdrmeludctechdvpwd3988zzs7ncq2cmtxu <85d1fb36f341a371cee9aa12765c2068f79ff1b85e7176b02e6c4a738850f4f0@sprout-oss.stage.blox.sqprod.co>
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