fix: show the active profile's avatar in chat (#679)#755
Open
histfuture wants to merge 1 commit into
Open
Conversation
Chat always rendered the Hermes mark next to agent turns and on the empty state, regardless of the active profile — so a profile's custom avatar (or a named profile's coloured initial) never appeared in chat, even though the Profiles page rendered it correctly. Closes fathah#679. - Add AgentAvatarContext and render the chat agent avatar via the shared ProfileAvatar (custom image / coloured initial) in message rows, history rows, the typing indicator and the empty state, matching the Profiles page. The default profile keeps the animated Hermes mark. Profile appearance is plumbed Layout -> Chat -> the avatar context. - Pin a not-yet-started chat to the active profile so launch-time restore of the persisted profile also routes a fresh chat to the selected agent. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
daff2b0 to
598d745
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.
Summary
Fixes #679. The chat always rendered the Hermes mark next to agent turns and on the empty state, regardless of the active profile. A profile's custom avatar — or just a named profile's coloured initial — never appeared in chat, even though the Profiles page rendered it correctly.
Changes
AgentAvatarContextand render the chat agent avatar through the sharedProfileAvatarcomponent (custom image, or coloured initial for a named profile) in message rows, history/reasoning rows, the typing indicator and the empty state — matching the Profiles page. The default profile keeps the animated Hermes mark, so the recently-added loading animation is preserved.Layout→Chat→ the avatar context.selectProfileRunTransitionswitch handling).Notes
Rebased onto current
main; the profile-switch routing added in the meantime (selectProfileRunTransition) is kept as-is — this PR layers the avatar rendering on top and adds a launch-restore safety net.Testing
npm run typecheckpasses; changed files lint clean.🤖 Generated with Claude Code