Skip to content

fix: prioritize owned agents in mention autocomplete#2016

Open
brow wants to merge 1 commit into
mainfrom
mention-own-agent-first
Open

fix: prioritize owned agents in mention autocomplete#2016
brow wants to merge 1 commit into
mainfrom
mention-own-agent-first

Conversation

@brow

@brow brow commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

What changed?

  • Prioritize agents owned by the current user in desktop mention autocomplete.
  • Apply the same ownership-first ranking in mobile autocomplete.
  • Preserve existing group, match-quality, and stable-order ranking for all remaining candidates.

Why?

When several agents share a display name, the requester's own agent should be the first suggestion instead of an identically named agent owned by someone else.

How is it tested?

Desktop unit tests, typecheck, and full pre-push validation.

Added tests:

🤖 This PR was authored with an agent (Buzz: raccoon).

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 17, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@brow

brow commented Jul 17, 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.

@brow
brow marked this pull request as ready for review July 17, 2026 05:13
@brow
brow requested a review from a team as a code owner July 17, 2026 05:13
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