# Why Regenerate is blocked on a reply that has branches

Regenerate and Revert to here remove messages from a conversation. If you branched from one of those messages, GPTree stops and explains, so the branch keeps the answer it was built on.

You asked a question, got an answer, and branched from it to explore something. Later you come back to the main thread, decide the answer was not quite right, and press Regenerate. GPTree shows a message instead: **This reply has branches**.

That is on purpose. Here is what is going on and what to do instead.

## What Regenerate and Revert to here actually do

Regenerate replaces the last reply with a new one. The old reply is removed from the conversation.

Revert to here goes further. It removes every message after the one you chose.

Neither one can be undone.

## Why a branch stops them

A branch you made from a reply, with the Branch button on that reply or by highlighting some of its text, is built on that reply. It is the answer the branch started from.

If GPTree removed the reply, the branch would lose it. The branch would carry on from an answer it can no longer see. So when you made a branch from the reply, or from any message after it, GPTree stops before removing anything.

You see one of two messages:

- **This reply has branches**, when you press Regenerate.
- **Later messages have branches**, when you choose Revert to here on an earlier message.

Nothing has been removed when you see either message.

## What to do instead

**Try another answer as a branch.** Press Branch on your own question, then ask again in the new branch. You keep the original answer and its branches, and you get a second answer you can compare with the first. This is usually the better choice anyway: you can put the two answers side by side and keep whichever works.

**Remove the branches first.** If you really want the old reply gone, delete the branches made from it, then Regenerate or Revert to here as normal.

## Branches that do not block

A branch you started from the Branch button at the top of the pane does not hold anything up. It is a copy of the conversation as it stood when you made it, not a branch from one particular reply. If you regenerate an answer in the main thread, that branch simply stops seeing the answer you replaced.

A branch you archived from the tree does not hold anything up either. You cannot see it in the tree to delete it, so GPTree lets Regenerate and Revert to here go ahead. The archived branch stays where it is, but it no longer sees the removed reply or anything after it. It still sees the messages that remain in the conversation from before it was made.
