Skip to content

fix(desktop): preserve exact agent mentions on send - #3270

Open
alexesms wants to merge 1 commit into
block:mainfrom
alexesms:fix/trailing-agent-mention-send
Open

fix(desktop): preserve exact agent mentions on send#3270
alexesms wants to merge 1 commit into
block:mainfrom
alexesms:fix/trailing-agent-mention-send

Conversation

@alexesms

Copy link
Copy Markdown

Summary

  • preserve the Nostr p tag when a user clicks Send with an exact agent mention still pending as plain autocomplete text
  • resolve only uniquely named agents, so duplicate display names are never guessed
  • cover trailing mentions, mentions at the beginning, and punctuation boundaries
  • move send-time extraction into a focused helper to keep useMentions.ts under the repository file-size limit

Related issue

N/A — searched existing issues and pull requests. #2508, #2514, and #2893 cover cross-machine agent discovery; this fixes the separate send-time path where a known agent is visible but the autocomplete suggestion has not been selected before Send is clicked.

Testing

  • desktop unit suite: 3,723 passed
  • mention helper unit tests: 29 passed
  • Playwright mention suite: 50 passed
  • focused Playwright regression: 1 passed
  • pnpm typecheck
  • Biome check for changed files
  • desktop file-size checks
  • just ci passed workspace fmt/clippy, desktop checks, Tauri fmt/clippy, and web checks
  • just ci mobile step did not complete because Hermit's Dart bootstrap stalled without output for more than eight minutes; no mobile files are changed

@alexesms
alexesms requested a review from a team as a code owner July 28, 2026 05:04
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