Skip to content

feat(desktop): disambiguate duplicate agent names by owner#2019

Draft
brow wants to merge 1 commit into
mainfrom
desktop-ambiguous-agent-owner-suffix
Draft

feat(desktop): disambiguate duplicate agent names by owner#2019
brow wants to merge 1 commit into
mainfrom
desktop-ambiguous-agent-owner-suffix

Conversation

@brow

@brow brow commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

What changed?

Agent search results now append an owner suffix only when visible agent names collide, including case-insensitive collisions. The disambiguated label appears in mention autocomplete, channel member search, and new-message recipient search, while selection still uses the agent's original name.

Accessible names match the visible labels, and the existing owner subtitle and npub fallback remain available.

Why?

Duplicate agent names were visually ambiguous across recipient surfaces. Showing Echo (you) and eChO (outsider) at the point of selection makes ownership clear without adding noise to unique agent names or human results.

How is it tested?

Build and run.

Added tests:

Before / after

Surface Before After
Mention autocomplete Mention autocomplete before Mention autocomplete after
Add member Add-member results before Add-member results after
New message New-message results before New-message results after

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

Co-authored-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: Codex <noreply@openai.com>
Ai-assisted: true
@brow

brow commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

@builderbot review

@brow

brow commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

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