Agent profiles: clearing a field leaves an unsaved change that blocks Add profile #1874

Closed
opened 2026-11-12 09:45:53 +00:00 by sam · 1 comment
Owner

Problem

On Settings → Agent profiles, typing into a profile field and clearing it again leaves "1 unsaved settings change" with every field visibly empty. While any change is unsaved, AgentProfilesPage.vue disables the name input and Add profile (:disabled="unsaved"), so the page looks broken. Likely cause: patch() writes image: "" (or adapter, kit) onto a stored entry that had no such key, and the settings diff counts "" against a missing key as a change.

Done when

Clearing a field back to its stored state shows no unsaved change, and Add profile is available.

## Problem On Settings → Agent profiles, typing into a profile field and clearing it again leaves "1 unsaved settings change" with every field visibly empty. While any change is unsaved, `AgentProfilesPage.vue` disables the name input and Add profile (`:disabled="unsaved"`), so the page looks broken. Likely cause: `patch()` writes `image: ""` (or `adapter`, `kit`) onto a stored entry that had no such key, and the settings diff counts `""` against a missing key as a change. ## Done when Clearing a field back to its stored state shows no unsaved change, and Add profile is available.
sam added the mediumbug labels 2026-11-12 15:51:30 +00:00
Author
Owner

Fixed in 04515452. patch() in AgentProfilesPage.vue now drops a field cleared to empty unless the stored profile already has that key, so emptying a field never written no longer diffs as a change and Add profile stays available. Ran task check (pass).

Fixed in 04515452. patch() in AgentProfilesPage.vue now drops a field cleared to empty unless the stored profile already has that key, so emptying a field never written no longer diffs as a change and Add profile stays available. Ran task check (pass).
sam closed this issue 2026-11-13 16:48:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1874