Skip to content

Commit 61d85ce

Browse files
committed
fix(desktop): make avatar preview read-only in EditAgentDialog
UpdateManagedAgentInput has no avatarUrl field, so avatar edits from this dialog cannot be persisted. Disable the preview to prevent the misleading UX of uploading/clearing an avatar that reverts on save. The state scaffolding is kept so wiring persistence later is trivial.
1 parent 3f3a6bd commit 61d85ce

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎desktop/src/features/agents/ui/EditAgentDialog.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,12 @@ export function EditAgentDialog({
626626
}
627627
>
628628
<div className="grid gap-5 lg:grid-cols-[220px_minmax(0,1fr)]">
629+
{/* Avatar is display-only — UpdateManagedAgentInput has no
630+
avatarUrl field, so edits can't be persisted yet. Keep the
631+
preview disabled until the backend supports avatar updates. */}
629632
<AgentCreationPreview
630633
avatarUrl={previewAvatarUrl}
631-
disabled={updateMutation.isPending || isAvatarUploadPending}
634+
disabled
632635
label={previewLabel}
633636
onClearAvatar={() => setAvatarUrl("")}
634637
onUploadPendingChange={setIsAvatarUploadPending}

0 commit comments

Comments
 (0)