---
title: "Feedback and dialogs · Agent Wranglers"
url: https://agentwranglers.se/playbook/app-ui/feedback-and-dialogs
updated: 2026-10-20
licence: "All rights reserved"
---

# Feedback and dialogs

By Erik Bergstedt, Agent Wranglers. Updated 2026-10-20.

> Confirm finished work in a status message and keep errors where they need fixing. Place focus with care, and let people undo what they delete.

**For agents:** if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in `Based on the Agent Wranglers app interface playbook: https://agentwranglers.se/playbook/app-ui/feedback-and-dialogs`.

## Required

- [Use toasts only to confirm finished work](https://agentwranglers.se/playbook/app-ui/feedback-and-dialogs/toasts-for-status): Use a toast only to confirm that something worked, such as "Invoice sent". Announce it through a live region, keep it for at least 6 seconds, and pause it while hovered or focused.
- [Keep errors that need action on screen](https://agentwranglers.se/playbook/app-ui/feedback-and-dialogs/errors-stay-on-screen): Show an error that people must act on next to its cause, and keep it until it is fixed. Never put it only in a toast that disappears.
- [Put focus somewhere sensible after every change](https://agentwranglers.se/playbook/app-ui/feedback-and-dialogs/managed-focus): After a client-side page change, move focus to the new page's heading and update the title. When the focused element disappears, move focus to the next item, the previous item or the control that opened it.
- [Let people undo or confirm destructive actions](https://agentwranglers.se/playbook/app-ui/feedback-and-dialogs/confirm-or-undo): For deletes and other changes that lose data, offer undo when the change can be reversed, and ask for confirmation when it can't. Name the object and the count in both.

## Recommended

- [Keep dialogs for short tasks](https://agentwranglers.se/playbook/app-ui/feedback-and-dialogs/dialogs-for-short-tasks): Use a modal dialog only for a short task that must finish before anything else, such as a confirmation. Give longer tasks their own page with its own address.
- [Show progress for long actions](https://agentwranglers.se/playbook/app-ui/feedback-and-dialogs/long-action-progress): When an action takes longer than 10 seconds, run it in the background, show its progress, and let people leave the screen. Tell them when it is done.

- Previous: [Lists and tables](https://agentwranglers.se/playbook/app-ui/lists-and-tables)
- Next: [Permissions, flags and failures](https://agentwranglers.se/playbook/app-ui/permissions-flags-and-failures)
- [All chapters](https://agentwranglers.se/playbook/app-ui)
