paperclip/ui/src
Evyatar Bluzer 61eb952e94
fix(ui): show success toast when saving agent configuration (#1931)
## Problem

When you edit agent configuration (name, instructions, adapter settings,
etc) and click Save, the form just quietly go back to normal state.
There is no toast, no message, no visual confirmation that the save was
successful.

But when the save FAIL, you get a red "Save failed" toast with the error
message (line 1459). So the feedback is asymmetrical - you only hear
from the system when something go wrong, never when it go right.

This made me click Save multiple times sometimes because I was not sure
if it actually work. The button text change from "Saving..." back to
"Save" but that transition is easy to miss if you look away for a
moment.

## What I changed

Added one line in the `updateAgent` mutation `onSuccess` callback:

```tsx
pushToast({ title: "Agent saved", tone: "success" });
```

Now user see a brief green toast confirming the save. Same pattern used
in Routines page when creating a routine (line 132-136) and in many
other mutation success handlers across the app.

## How to test

1. Go to any agent detail > Config tab
2. Change any setting (name, instructions, etc)
3. Click Save
4. Should see green "Agent saved" toast appear briefly

1 file, 1 line added.
2026-06-17 20:59:02 -05:00
..
adapters fix(openclaw-gateway): complete and stabilize OpenClaw Gateway integration (#2322) 2026-06-11 23:31:39 -07:00
api Build the Skills Store (#7990) 2026-06-11 14:02:09 -05:00
components fix: extra args field mangles comma-separated values during typing (#2125) 2026-06-17 20:57:05 -05:00
context feat(ui): default to system prefers-color-scheme for first-time visitors (supersedes part of #3732) (#5873) 2026-06-12 14:03:54 -07:00
fixtures [codex] Add checkbox confirmation issue interactions (#7649) 2026-06-06 08:48:43 -05:00
hooks feat(ui): NUX rework behind enableConferenceRoomChat experimental flag — capsule onboarding, conference-room chat, unified composer (#8000) 2026-06-11 16:32:55 -05:00
i18n [codex] Add full locale catalog (#6070) 2026-05-16 08:24:31 -05:00
lib fix(ui): keep desktop shell pinned when scrollIntoView walks past body (#8071) 2026-06-12 17:31:16 -07:00
pages fix(ui): show success toast when saving agent configuration (#1931) 2026-06-17 20:59:02 -05:00
plugins [codex] Move instance settings under company settings (#7680) 2026-06-07 17:23:53 -05:00
App.test.tsx [codex] Add private browser first-admin claim flow (#6755) 2026-05-27 21:15:01 -10:00
App.tsx feat(ui): NUX rework behind enableConferenceRoomChat experimental flag — capsule onboarding, conference-room chat, unified composer (#8000) 2026-06-11 16:32:55 -05:00
bootstrapSetup.ts [codex] Add private browser first-admin claim flow (#6755) 2026-05-27 21:15:01 -10:00
index.css feat(ui): NUX rework behind enableConferenceRoomChat experimental flag — capsule onboarding, conference-room chat, unified composer (#8000) 2026-06-11 16:32:55 -05:00
main.tsx Improve operator workflow QoL (#5291) 2026-05-06 06:30:44 -05:00
vite-env.d.ts Add feedback voting and thumbs capture flow 2026-04-02 09:11:49 -05:00