Skip to content

bug(avatars): a template's shipped avatar is replaced when default avatars are generated #4750

Backlog

Description

@vybe

Problem

A template can ship its own avatar image (avatar.webp or avatar.png beside template.yaml, #2693 for local: templates and #4570 for github: templates). The agent created from it shows that image from the first start, with no image key.

The image is stored as a default avatar. Defaults are the ones "Generate Default Avatars" is allowed to overwrite. So once an image key exists and someone presses that button, the face the template author chose is replaced by a generated one.

Read on dev @ c62030cf9:

  • docs/memory/feature-flows/agent-avatars.md (Bundled image): "It is still recorded as a default avatar, so Generate Default Avatars overwrites it once a key exists."
  • src/backend/db/agent_settings/avatar.py:75-96: agents with is_default_avatar = 1 are in the set that gets a new default.

Not tested live.

Why it matters

A shipped avatar is a deliberate choice by the template's author: the agent's identity across every install. It should not be treated as a placeholder. #4609 is the same root cause from another side: the Workspace hides the shipped image because it is flagged as a default.

Expected

  • An avatar shipped by a template is kept when default avatars are generated for the fleet.
  • The owner can still replace it on purpose (upload, or generate for that one agent).
  • Agents with no shipped image behave as today.

Related: #4609, #4570, #2693.

Activity

  1. added
    priority-p2
    type-bug
    theme-ui-ux
    complexity-low
    status-ready
    on Nov 24, 2026
  2. vybe commented on Nov 24, 2026

    @vybe
    ContributorAuthor

    #4754 is validated (APPROVE, independent run: #4754 (comment)) and marked ready for review; CI is green on e84cb3954. It also closes #4609. Before merge: one look on a live stack (create from a template that ships an image, press Generate Default Avatars, confirm the image stays and the Workspace sidebar shows it). One non-blocking note from validation: the "refused destination leaves no stamp" guarantee is pinned by a test on the github: path only; a twin test for local: would be one function.

  3. added
    status-in-dev
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-lowpriority-p2status-in-devstatus-readytheme-ui-uxtype-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions