You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(workspace): a GitHub template's bundled avatar still shows as initials in the Workspace #4609
An agent created from a GitHub template that ships avatar.png at its root now shows that image on the agent page and the dashboard tile (#4574). The Workspace still shows the initials tile for it: in the sidebar agent list, and so in every Workspace surface that reads the roster card.
Seen with a fixture repo: a red avatar.png on main and a blue one at tag v1. Both agents show their image on /agents/<name> and on the dashboard. GET /api/agents returns avatar_url for both. In /workspace both show BA / BT. An agent in the same list with a generated avatar shows its image.
Why
src/backend/client_portal/service.py:945-952 builds the Workspace card's avatar_url only when the avatar is not a default one:
# Only agents with a generated (non-default) avatar get an image URL;# the UI renders an initials tile otherwise.avatar_url= (
f"/api/agents/{name}/avatar?v={updated}"ifupdatedandnotr.get("is_default_avatar")
elseNone
)
#4574 records the bundled file as a default avatar (set_default_avatar, is_default_avatar=1), the same as a local: template's bundled avatar. So the Workspace drops it. A local: template's bundled avatar is hidden in the Workspace for the same reason.
#4570 named the Workspace as one of the three surfaces that should show the image. The agent page and the dashboard are fixed; the Workspace is not.
Expected
The Workspace card carries avatar_url for a bundled template avatar, as the agent page does. The rule that hides an untouched default avatar should not hide an image the template shipped on purpose.
Release
Not a 1.0.5 cut blocker (release decision): the case that needs it is not in the 1.0.5 scope.
Activity
fix(avatars): keep a template's shipped avatar instead of storing it …
test(avatar): prove #4609 end to end — a shipped image reaches the Wo…
fix(avatars): keep a template's shipped avatar instead of storing it …