Repository navigation
feat(portal): agent avatar on chat-history rows (ent#186) - #1734
Merged
Merged
Conversation
History and search rows identified their agent with a 2px color dot, so a client with several agents had to hover for the tooltip. Render the conversation's PortalAvatar (size 22) instead — the same component the Agents section above already uses. The avatar URL is resolved from the roster already loaded at sign-in (avatarByAgent map keyed by agent_name), so there is no per-row request and no change to the sessions payload. Agents without a generated avatar fall through to PortalAvatar's existing initials + deterministic tint. Search rows move the snippet into the title column so both lists share one layout. Related to Abilityai/trinity-enterprise#186 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
PortalAvatar gated its background on `imgOk` alone. That ref starts true and only flips on the <img>'s @error — which can never fire when avatarUrl is null and no <img> is rendered at all. So an agent without a generated avatar drew white initials on a transparent background. Key both the <img> and the tint off one `showImage` computed (avatarUrl && imgOk), so the two can no longer disagree. Pre-existing since #138 and visible in the portal's Agents section; ent#186 puts the same component on every history and search row, and the initials + color fallback is one of its acceptance criteria. Related to Abilityai/trinity-enterprise#186 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Resolve by running |
vybe
approved these changes
Jul 23, 2026
vybe
left a comment
Contributor
There was a problem hiding this comment.
Validated via /validate-pr: small focused UI change, reuses PortalAvatar + existing roster (no new requests), security clean. Cross-tracker ent#186 stays open (titles half pending) — noting for manual status bump.
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.
Related to Abilityai/trinity-enterprise#186 (frontend half; the backend title-generation half is Abilityai/trinity-enterprise#194).
What
Client-portal history rows and cross-chat search results identified their agent with a 2px color dot, while the Agents section directly above rendered full
PortalAvatarcomponents. A client with several agents had to hover for the tooltip to learn whose conversation a thread was.How
Both lists now render
PortalAvataratsize=22— the same component (avatar-URL-with-initials-fallback) already used in four other portal places.avatarByAgentcomputed map keyed byagent_name, built from the existingrosterprop. No additional request per row, and no change to the sessions payload.PortalAvatar's existing initials + deterministic tint — no new empty state.ml-4-indented sibling that assumed the dot's width).agentColoris no longer imported directly by the sidebar (PortalAvatarstill uses it internally for the tint).Acceptance criteria
min-w-0+truncateretained on both lines;PortalAvatarisshrink-0; no new colors (the avatar carries its own tint, dark-mode-agnostic)Verification
@vue/compiler-sfcparse +compileScript+compileTemplateon the changed SFC → compiles clean. (A fullnpm run buildfails on this machine for an unrelated reason —mermaidis inpackage.jsonbut missing from the localnode_modules, breakingAgentWorkspace.vue; untouched by this PR.)🤖 Generated with Claude Code