Human-in-the-loop UX is the design of the moments when an agent stops and a person decides. Done well, those moments are rare, fast and well informed. Done badly, they become either a wall of prompts people click through without reading, or a missing safeguard on the one action that mattered.
This article covers when an agent should ask, what a request has to show, and how to keep approvals meaningful as people grow used to them. It builds on the principles in the guide to agentic UI design.
Why agents need decision points
An agent works from an instruction that is always less specific than the person’s actual intent. Most of the time, filling that gap is exactly what makes agents useful. Some gaps shouldn’t be filled silently: anything that is hard to undo, reaches other people, spends money or touches production.
A decision point puts a person back in the loop at the moment their judgement is worth more than the agent’s speed. Runtimes now support this directly. The AI SDK lets a tool require approval, and its tool parts move through approval-requested and approval-responded states before they run (AI SDK docs). CopilotKit’s useHumanInTheLoop pauses a run until your interface responds (CopilotKit docs). The runtime pauses the work. What the person sees while it’s paused is a design problem.
When to ask
Asking about everything is as unsafe as asking about nothing, because people stop reading. A simple way to decide is to place each kind of action on two axes: can it be undone, and how far does it reach.
| Only affects the person’s own work | Affects other people or live systems | |
|---|---|---|
| Easy to undo | Act, then report. Editing a draft, changing files on a branch. | Act, report clearly and keep a restore point. Updating a shared doc. |
| Hard or impossible to undo | Ask, briefly. Deleting local files, overwriting a version. | Always ask, with full detail. Publishing, sending, paying, deleting records. |
“Reversible” has to be true in practice, not in theory. An email can’t be unsent; a database row can be restored only if someone kept a backup. If the product can make an action reversible (a checkpoint, a staging step, a delay before sending), that is often better than another approval.
What a request must show
An approval is only as good as the information beside it. Every request should answer:
- What exactly will happen, as a specific action on a specific thing: “Publish the new pricing page to attuna-shop.com”, not “Run deploy”.
- What changes, with a preview or a diff for anything that edits content.
- Who or what it affects, and when: every visitor, immediately.
- Whether it can be undone, and how.
- Why the agent thinks it’s ready: the checks it ran, the sources it used.
If the agent can’t answer one of these, that is a signal in itself. An agent that can’t say whether an action is reversible shouldn’t be the one deciding it’s safe.
A vague request and a clear one
Here is the same request asked two ways. Try the buttons on the right: each response leads somewhere specific.
Vague: what, where and why are left to guesswork
The agent wants to run a command.
deploy --prod
Specific: the action, reach, undo and evidence
Publish the new pricing page to attuna-shop.com
- Change
- 3 files , 38 lines added, 12 removed
- Affects
- Every visitor, as soon as it’s live
- Undo
- Restore the current page in one step
- Checked
- 48 tests passed, previews at 3 widths
The weak version fails in ways that are common in shipped products:
- It names a mechanism (a command) instead of an outcome.
- It gives no sense of reach, so “Allow” feels routine.
- It hides whether the action can be undone.
- “Deny” leads nowhere. The agent has no way to learn what to do instead.
The strong version uses a verb that matches the consequence (“Publish”, not “Allow”), puts the change size and reach next to the decision, and says how to undo it. Attuna doesn’t ship a dedicated approval component; the example is composed from Agent Status, whose approval state reads “Needs approval”, and the line counts from Change Summary.
Approve, reject, revise
Two buttons are rarely enough. A good request offers three paths:
- Approve, labelled with the action: Publish, Send, Delete 12 records.
- Revise, which keeps the agent working but changes the plan: “Ask for changes”, with a text field for what to change.
- Reject, which says what happens next (“Not published. Nothing changed.”) so the person knows the state is safe.
For destructive actions, make approval the deliberate choice. A modal Alert Dialog is appropriate when the decision must be made before anything else continues; per the ARIA alert dialog pattern, focus should start on the least destructive action. For approvals that can wait, an inline request in the conversation or a queue is less disruptive than a modal.
Approval fatigue
People adapt to frequent prompts by approving without reading. Anthropic’s study of Claude Code found that new users run full auto-approval in about 20% of sessions, rising to over 40% after several hundred sessions (Anthropic, 2026). That isn’t necessarily bad: the same experienced users interrupt the agent more often, which suggests supervision shifts from approving each step to watching and stepping in. Interfaces should support that shift rather than fight it.
Ways to keep approvals meaningful:
- Ask only for actions in the hard-to-undo quadrants above.
- Batch related approvals into one request with a list, instead of five prompts in a row.
- Let people grant scoped permission: “Allow edits in this folder for this session”, not “Always allow”.
- Make stopping as easy as approving, at every point, so lighter oversight is still safe.
- Never auto-approve silently. If a rule approved it, say which rule.
Delegated authority
Permissions are approvals made in advance. Treat them with the same clarity: state what is allowed, where, and for how long. A good permission summary reads like a sentence, “Can edit files in /app and run tests. Asks before installing packages or pushing.”, and can be changed from one place. When a permission is used, the interface should show it was used, so people can see their delegation working.
When an agent hits the edge of its permission, it should ask for the specific extension it needs, not for broader access in general.
Failure, cancellation and resumption
A pending approval is a paused run, and paused runs outlive the moment. Design for what happens when nobody answers:
- Show the run as blocked wherever people look for status: a sidebar, a list of runs, a notification.
- If a request expires, say so, and let the person restart from the same point.
- If the action fails after approval, report that clearly. An approved action that didn’t happen is worse than one that was never approved.
- Cancelling a run with pending approvals should cancel those approvals too.
Checkpoints make resumption safer: if the person approves, regrets it and restores, they return to a known state rather than unpicking the agent’s work by hand.
Auditability
Every approval is a record: who decided, what they saw, what they chose and what happened. Keep that record in the product, not just in logs. A Run History that shows which runs needed approval and how they ended lets teams review decisions later, and lets individuals answer “did I approve that?”. Record what the request showed at the time, so a later change to the plan can’t rewrite what was approved.
Accessibility
- Announce that an approval is needed through a polite status message, without moving focus unless the request is modal.
- Don’t rely on colour to mark risk. Use words: “Can’t be undone”.
- Label buttons with the action, so “Publish” and “Don’t publish” are clear out of context, as screen reader users often hear them.
- Give pending approvals enough time. If a request can expire, say when, and let people extend it.
Approvals sit inside a wider set of states. The article on tool call UI covers how the work around them is shown.