# Go back and undo files

> Go back to before one of your messages, with the conversation, the files or both, or edit a message you already sent so the agent redoes the work; nothing is deleted.

Chats · Updated: 2026-11-02 · version 2.0.157 · https://nobreiniers.com/en/help/go-back-and-undo/

If the agent took a wrong turn, go back to before one of your messages. Nothing is deleted: the original chat stays whole and the file versions stay saved.

## Go back to a message

1. On one of your messages, press «Go back here». (Also: Esc Esc with the composer empty, or the `/rewind` command.)
2. In «What goes back», choose:

| Option | What happens |
|---|---|
| «Conversation and files» | A new chat from before that message, and the files the agent changed from there go back to how they were. |
| «Only the conversation» | A new chat from before that message; the files stay as they are now. |
| «Only the files» | The files go back to how they were; the conversation goes on. |

3. Your message goes back to the text box, with its attachments and the cursor already in it, so you can edit and send it again.
4. If you picked the wrong message, press «Choose another message».

> **Note:** «Go back here» and «Edit this message» work in your chats with Breini; not in Nobreiniers' chats, groups, helpers, automatic tasks or tasks.

## Edit a message of yours

If you got something wrong in a message you already sent, change it and the agent redoes the work from there.

1. Hover your message and press the pencil, «Edit this message».
2. Or select some words inside your message and press the pencil that appears beside them, «Edit the words you chose».
3. A new chat opens with the conversation as it was just before that message. It is named like the original with (2) at the end, and your message is in the box, with its attachments. If you selected some words, they come already selected: what you type replaces only them.
4. Change it and send it. The agent knows your message replaces the original and redoes the work with your change.

- The new chat starts with «You are editing your message…» and the original chat stays as it was, with the line «You edited your message…» that says where the new version goes on.
- Editing does not touch files: what the agent changed after that message stays as it is, and the agent knows it and checks it before going on. To take the files back too, use «Go back here» with «Conversation and files».
- While the agent is working you cannot: «This chat is working: stop it with ■ or wait for it to finish to go back.»

## Branch from any message

To keep going from an earlier point without losing the chat as it is, press the branch icon on one of your messages or on a reply. You get a new chat, titled like the original with (branch) at its end, that holds the conversation up to the end of that answer. The original is not touched.

- In a project that is a git folder, a small menu asks what comes along: «Only the conversation», or «Conversation and files». With the files, the new chat works in a working copy of its own, on a new git branch, with the project as it was at that point: your work not yet committed as it is, and what the agent changed after that point put back. Your current files are not touched.
- Files changed by commands after that point cannot be separated; the new chat says which files stayed as they are now.
- It works while the chat is working, from any earlier answer; from the last answer it waits until the turn ends.
- The branch icon reads «Branch from here: a new chat that goes on from this point». The new chat's first line says where it branched from; if the files came along it says they are in their own working copy, and if some could not go back it names them.
- It works from your own chats, not from a group: «A branch can be made from your own chats, not from a group.»
- Breini can do it too: ask for a branch from a message, with or without the files.

## Undo file changes

«Undo file changes» puts the files the agents changed back to how they were before a turn. Their versions stay saved in the chat.

### Undo just one turn, from its card

When a turn changed files, a card ends it: «Changed 3 files» (or «Changed 1 file»), each file with how many lines were added and removed, and a `new` tag («new») on the files it created. Press a file to see that turn's change in place, or the icon «Open in the changes» to see it in the Changes panel.

1. Press the undo icon («Undo this turn’s changes»). It asks «Undo?».
2. Press it again to confirm. Only that turn is undone, not the ones after it.
3. The card becomes a quiet «Changes undone» (or «Changes undone, except some files»), and the chat notes which turn you undid.

A file that changed after the agent touched it stays as it is, and the card says so («1 file stayed as it is because it changed after.»). A file too big to keep a copy of is left as it is too. If commands also changed files, the card says «Commands also changed files. Undo puts those back too.»
