# Reverting Changes & Undoing Mistakes...

While working in Fater's **Image Editor**, you'll make many adjustments. Fater provides specific ways to undo mask edits, and for other changes, you'll rely on re-adding generated layers or, in some cases, more drastic measures.

*(Remember: Fater **auto-saves** your project periodically after inactivity. There is no manual "Save Project" button within the editor.)*

***

### Undoing/Redoing Mask Edits

Fater maintains a history specifically for modifications made to the **Mask** on the **Inpaint Canvas**.

* **Undo Last Mask Action:** Press **`Ctrl+Z`** (Windows/Linux) or **`Cmd+Z`** (Mac).
* **Redo Last Undone Mask Action:** Press **`Ctrl+Y`** (Windows/Linux) or **`Cmd+Shift+Z`** (Mac).
* *(See* [Managing Mask History](/fater-ai-docs/using-editing-and-masking-tools/managing-mask-history.md) *for more details).*

***

### Reverting Changes to AI-Generated Layers

If an AI model generates a layer you're not happy with, or if you've modified an AI-generated layer and want to go back to a previous version from that same generation batch:

1. Locate the **Generation Task List** (thumbnails above the Floating Prompt Area).
2. If the generation produced multiple outputs, **click on the thumbnail** corresponding to the version you prefer.
3. This will **replace the current AI-generated layer** (from that batch) on your canvas with the selected version.

If you want to revert to the *original state before that specific AI generation batch was applied*, you would typically:

1. **Delete** the unwanted AI-generated layer(s) from the **Layers Tab**.
2. Ensure your canvas (previous layers, mask, Generation Area) is set up as it was before that generation.
3. Re-run the generation if needed.

***

### Reverting Other Layer Operations (Visibility, Position, etc.)

For changes like toggling layer visibility, moving a layer, or changing its opacity:

* **Manual Reversal:** You typically reverse these actions manually (e.g., toggle visibility back, move the layer back to its original position).
* **No Dedicated Multi-Step Undo Stack:** Fater does *not* currently have a global, multi-step undo history for general layer operations (beyond mask history).

***

### Caution with Destructive Actions

Certain actions are destructive and harder to recover from if the auto-save triggers:

* **Deleting Layers:** Once a layer is deleted from the Layers Tab and the project auto-saves, it's generally gone unless it was an AI-generated layer you can re-add from the Generation Task List (if that task is still visible).
* **Merging Layers:** Merging layers combines them permanently. The original layers are removed. *(See*  [Advanced Layer Actions](/fater-ai-docs/working-with-layers/advanced-layer-actions.md) *for merge details).*
* **Direct Layer Editing Tools (Pencil, Cutter, Eraser):** These modify layer pixels directly. Use with care or work on duplicated layers.

***

### The "Emergency Reload" (Use with Extreme Caution)

If you've made a significant mistake (e.g., accidentally deleted several important layers or merged something incorrectly) and the **auto-save has&#x20;*****not yet triggered and completed***, you *might* be able to revert by:

1. **Quickly reloading the browser page.**
2. Fater will load the last auto-saved version of your project.

{% hint style="warning" %}
**This is risky and unreliable:**

* You will lose **all work** done since the last successful auto-save.
* If auto-save triggered just before you reloaded, or completes during the reload, your mistake might already be saved.
* This is an "ugly but sometimes working" last resort, not a standard undo procedure.
  {% endhint %}

**Best Practice:** Work non-destructively when possible. Duplicate layers before major changes or destructive operations like merging. Rely on the mask history for mask edits and the Generation Task List for iterating on AI outputs.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fater.gitbook.io/fater-ai-docs/generating-images-with-ai/reverting-changes-and-undoing-mistakes....md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
