Skip to content

revert(desktop): restore explicit agent mentions - #6920

Draft
tellaho wants to merge 2 commits into
mainfrom
tho/revert-composer-auto-mention
Draft

revert(desktop): restore explicit agent mentions#6920
tellaho wants to merge 2 commits into
mainfrom
tho/revert-composer-auto-mention

Conversation

@tellaho

@tellaho tellaho commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Category: fix
User Impact: Message composition returns to explicit mentions without automatic recipient insertion or per-message persistent addressing controls.
Problem: The newer composer behavior could silently carry addressed agents across sends and altered how mentions were inserted, making recipients harder to predict. Restoring the previous flow must also avoid reviving stale recipient state left in local storage.
Solution: Revert the composer auto-mention and addressing stack while preserving independent fixes that landed afterward, and version the restored persistence keys so every user starts from a clean, disabled state.

File changes

desktop/src-tauri/src/events/message_tags.rs
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/channels/ui/ChannelPane.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/channels/ui/useChannelPaneMessages.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/communities/useCommunityInit.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/forum/ui/ForumComposer.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/forum/ui/ForumComposerAutocompletes.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/home/ui/InboxDetailPane.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/lib/agentAddressMention.d.mts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/agentAddressMention.mjs
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/agentAddressMention.test.mjs
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/applyEditTagOverlay.mjs
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/lib/applyEditTagOverlay.test.mjs
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/lib/autoPinMentionedAgentsPreference.test.mjs
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/autoPinMentionedAgentsPreference.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/extractMentionPersonas.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/getVisibleAgentAddressPubkeys.test.mjs
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/getVisibleAgentAddressPubkeys.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/mentionCandidates.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/lib/mentionHighlightExtension.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/lib/mentionRanking.test.mjs
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/lib/mentionRanking.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/lib/mentionSuggestionMapping.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/lib/persistentAgentAudience.test.mjs
Restored persistence coverage and verifies legacy storage starts disabled and empty under the new keys.

desktop/src/features/messages/lib/persistentAgentAudience.ts
Restored thread-scoped persistent audiences with new storage-key versions so stale saved recipients and enablement do not reactivate.

desktop/src/features/messages/lib/recentMentionPubkeys.test.mjs
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/recentMentionPubkeys.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/useActiveAgentPubkeys.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/useDefaultAgentSuggestion.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/useMentionSelection.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/lib/useMentions.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/lib/useRichTextEditor.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/ui/ComposerAddressControls.test.mjs
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/ComposerAddressControls.tsx
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/MentionAutocomplete.test.mjs
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/ui/MentionAutocomplete.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/ui/MessageAgentAddressPrefix.tsx
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/MessageComposer.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes. Blank-line-only compaction keeps the restored source under the repository file-size ratchet.

desktop/src/features/messages/ui/MessageComposer.types.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/ui/MessageComposerToolbar.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/ui/MessageRow.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/ui/MessageThreadPanel.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/ui/composerAgentKeyboard.test.mjs
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/persistentAgentAudienceHosts.test.mjs
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/ui/useAddressMentionPulse.test.mjs
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/useAddressMentionPulse.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/useAgentAddressLockPicker.test.mjs
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/useAgentAddressLockPicker.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/useAlwaysAddressShortcut.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/useAutoPinMentionedAgents.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/useComposerMentionPicker.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/useComposerPasteHandler.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/useMentionSendFlow.helpers.test.mjs
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/useMentionSendFlow.helpers.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/messages/ui/useMentionSendFlow.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes. Blank-line-only compaction keeps the restored source under the repository file-size ratchet.

desktop/src/features/messages/ui/useMentionSendFlow.types.ts
Removed as part of the composer auto-mention and per-message addressing rollback.

desktop/src/features/messages/ui/usePersistentAgentMentionHydration.ts
Restored the previous composer behavior needed after the addressing rollback.

desktop/src/features/settings/ui/AgentsSettingsPanel.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/features/settings/ui/PreventSleepSettingsCard.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/shared/lib/keyboard-shortcuts.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/src/shared/ui/VideoReviewCommentMarkdown.tsx
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/tests/e2e/mentions.spec.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/tests/e2e/persistent-agent-audience.spec.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/tests/e2e/profile.spec.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

desktop/tests/e2e/send-channel-binding.spec.ts
Restored the previous explicit-mention behavior while retaining unrelated later fixes.

Reproduction steps

  1. Open a channel thread and focus the message composer.
  2. Type an agent mention and send the message; verify only explicitly mentioned agents are addressed.
  3. Send a follow-up without a mention; verify no automatic mention or per-message addressed-agent control appears.
  4. Seed the legacy buzz:keep-addressed-agents-active and buzz:persistent-agent-audiences:v2 keys, reload, and verify persistent addressing starts disabled with no restored recipients.
  5. Enable “Keep addressed agents active” in Settings → Agents and verify newly chosen thread recipients persist using the new keys.

tellaho and others added 2 commits August 27, 2026 07:39
Remove the composer auto-mention and persistent addressing stack while preserving unrelated draft and GIF work that landed afterward.

Co-authored-by: Carl <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@buzz.block.builderlab.xyz>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
Update the restored persistence smoke tests to use the fresh storage keys so they exercise the rollback without reviving legacy state.

Co-authored-by: Carl <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@buzz.block.builderlab.xyz>

Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
@tellaho
tellaho force-pushed the tho/revert-composer-auto-mention branch from f1efe78 to daeb409 Compare August 27, 2026 14:44
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