feat(desktop): show each agent's role in the @-mention selector#2706
Open
webdevtodayjason wants to merge 1 commit into
Open
feat(desktop): show each agent's role in the @-mention selector#2706webdevtodayjason wants to merge 1 commit into
webdevtodayjason wants to merge 1 commit into
Conversation
Author
Agent role linesFizz, Honey, and Bumble each show their kind-0 Long
|
webdevtodayjason
force-pushed
the
feat/mention-selector-agent-about
branch
from
July 24, 2026 11:55
4de4925 to
a031120
Compare
Surface the kind-0 about field as a one-line role/description under agent rows in the mention autocomplete (block#2699). Carried through the Tauri profile summary path, resolved via the existing users-batch delta cache for agents missing from the caller's profile lookup, and rendered as a truncated single line that degrades to today's plain "agent" label when about is empty. Signed-off-by: webdevtodayjason <jason@webdevtoday.com>
webdevtodayjason
force-pushed
the
feat/mention-selector-agent-about
branch
from
July 24, 2026 19:28
a031120 to
dd11fce
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Closes #2699.
Problem
The
@-mention selector lists agents by display name + avatar only. In a workspace with several agents that share a visual style (the issue's example: three bee agents — Fizz, Honey, Bumble), the rows are near-indistinguishable at the point of use: nothing says who builds, who writes, who researches.Approach
Surface each agent's public kind-0
aboutas a one-line role under its display name in the selector. It renders inside the meta line that already carries the bot icon and the "managed by …" suffix, so row geometry is unchanged — and an emptyaboutrenders exactly today's row (bot icon + literal "agent"), the graceful degradation the issue asked for. Humans never get a role line, even when their profile has anabout.Data path (all client-side, no relay changes):
users_batch_from_events,user_search_result_from_event) already parsed kind-0 content but droppedabout. They now carry it, and the TS layer maps it throughUserProfileSummary/UserSearchResult(the field was previouslyOmit-ed intauriProfiles.ts).useMentionsalready batch-resolves owner profiles for the "managed by" label. Agent candidates whoseaboutisn't already known get the same treatment viauseUsersBatchQuery— backed by its per-pubkey delta cache — so the role line resolves even for agents who haven't authored anything in the loaded timeline.aboutresolved at candidate-build time (user-search results carry it inline), else falls back to the profile lookup — mirroring the existingavatarUrlfallback. A multi-lineaboutcollapses to a single line; the full text lives in the row'stitletooltip.aboutto stay faithful to the Rust response shape.Known limitation (flagged in the issue): agents don't reliably publish an
abouttoday, and the #2534 republish allowlist can strip the field. Affected rows simply degrade to the current name-only presentation — when those land, this UI lights up with no further changes.Tests
users_batch_carries_about_when_present,user_search_result_carries_about_when_present(present → carried, absent →None).mention-descriptions-screenshots.spec.tsasserts the role lines, the no-aboutfallback row, the human row, and that a longabouttruncates on one line (scrollWidth > clientWidth) with the full text in the tooltip. The existing 50mentions.spec.ts+team-mentions.spec.tssmoke tests pass unchanged.just cipasses locally. (No relay/db/auth changes, so the integration suite is unaffected.)Screenshots in the comment below.
Checklist
just cipasses (fmt + clippy + unit tests + mobile)unwrap()in production code pathsunsafeblocks