Confirming the AI assistant's changes: run or cancel a proposed write
Describes AI Agent 0.2.0.
The AI assistant never changes data by itself. When it wants to create, edit or delete something, it shows you a card with the change, and nothing happens until you press Run.
Where to find it
The cards appear in the chat panel of the AI assistant, in the feed of the chat where the assistant proposed the change.
The assistant can only propose changes in a module when two things are true:
- In Settings > API (
/admin/settings/api), the module’s box Agent may act is ticked. It is off for every module until someone ticks it, and it does not change what API keys may do. - Your session’s role holds the permission the tool needs.
Settings > AI Agent lists every tool under What the assistant can use now, with Writes or Read only, Available or Closed, and why a tool is closed, for example It writes, and “Agent may act” is off for the module in Settings → API.
The card
A waiting card is headed The assistant proposes a change, with the tool’s name on the right. It shows:
- a preview of the change, as PhoenixKit describes it;
- What the assistant sent: open it to see the exact values the assistant passed, as plain text;
- Waits for you until a date and time, in the site’s time zone.
Its buttons:
- Run makes the change. It is checked again at that moment against your session’s rights, the module’s Agent may act box and the tool’s own rules.
- Cancel the change turns it down.
When the assistant proposes a change, its answer stops there. It does not tell you the change was made, because it wasn’t yet. The next time you write, it knows what became of the card.
A chat holds one waiting change at a time per answer, and the same change can’t wait on two cards.
What happens after you click
The card’s heading changes and a short line follows it in the feed:
| Card heading | Line in the feed | What it means |
|---|---|---|
| The change was made | Done: and the tool | The change ran. |
| The change was cancelled | Cancelled: | You turned it down. |
| The confirmation ran out; nothing was changed | Ran out: | Its time passed before anyone clicked. Ask again asks for the same change again on a new card. |
| The data changed — check it again below | The data changed: | The data was edited since the preview. A new card with a fresh preview follows. |
| The change failed | Failed: | The change was accepted but did not succeed. |
If a click can’t go through, the card keeps waiting and says why, for example:
- The assistant is answering. Try again when it has finished.
- The assistant may not make changes in this part of the site now. (the module’s Agent may act box was unticked)
- You may not make this change now. (your role does not allow it)
- This change is already waiting for confirmation. Run or cancel its card in the chat.
If you lose the right to the tool while a card waits, only Cancel the change is left. A waiting card is still there when you open the chat again, even if it is further back than the messages the panel loads.
Confirming a change calls no model, so it costs nothing and does not count as one of your turns.
What it doesn’t do
- It never runs a change without your click, and it can’t do more than your own session could.
- It can’t write in a module whose Agent may act box is off.
- A card can’t be confirmed in a borrowed (impersonated) session: there is no panel there.
- How long a card waits is a core API setting, not a setting of this module.