---
title: "Recover file changes"
description: "Rewind a message or undo the latest request to recover recorded file changes. Check the file and use Redo if needed."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.insightgig.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Recover file changes

Suppose you ask InsightGig to revise a concept test note, then decide the original wording is better. Rewind the request to recover the recorded version and reopen the file to check it.

## Before you begin

[Set up project history](/projects-and-files/set-up-project-history/) before asking InsightGig to revise study files. To recover an existing edit, open the conversation that contains its request.

## Make a practice edit

Try this with the fictional [snack concept test files](/downloads/snack-concept-test.zip). Follow [Add and switch projects](/projects-and-files/open-and-switch-projects/#before-you-begin) to extract and open the files.

1. In **Snack concept test**, follow [Set up project history](/projects-and-files/set-up-project-history/) and choose **Include my current files**. Check that history is on before you send the request.

2. [Start a session](/projects-and-files/start-a-new-session/#open-a-blank-session) in the snack project. Open `Results/findings-note.md` and check that it starts with `Snack concept test summary`. Choose **Research** and send this request.

   ```txt
   In Results/findings-note.md, change the first heading from Snack concept test summary to Snack launch recommendation.
   Leave the rest of the note and the other project files unchanged.
   ```

   ![Practice edit in the message box above the selected Snack concept test project](@/assets/images/work-with-agents/file-recovery-practice-request.png)

3. Wait for a reply, then open `Results/findings-note.md`. The reply can vary. Check that the saved heading says `Snack launch recommendation`, the exact heading requested.

The test models an edit you may want to undo. The study compares appeal for two snack ideas. The original title describes the evidence without implying a launch decision.

![Edit request and reply beside the findings note with the changed heading highlighted](@/assets/images/work-with-agents/file-recovery-heading-edited.png)

## Rewind to the editing request

Use this route when you can identify the message that started the unwanted edit.

:::caution[Check the message before you rewind]
Rewinding also rolls back later messages in that conversation and their recorded file changes. Check for later work you want to keep before you choose the message.
:::

1. In the conversation, find the request that changed the file. Move your pointer over your message to show its actions.
2. Select the curved arrow labelled **Rewind to here**.

   ![Rewind to here arrow highlighted on the request that changed the findings note heading](@/assets/images/work-with-agents/file-recovery-rewind-message.png)

The request returns to the message box as a draft. InsightGig hides the reply and restores the recorded file version.

## Undo the latest request

If the last request made the change, type `/undo` in the message box. Select **Undo the last message** from the list.

![Undo the last message highlighted after typing /undo](@/assets/images/work-with-agents/file-recovery-undo-command.png)

## Check the restored file

Use [Find and preview project files](/projects-and-files/folder-view-panel/) to open the affected file. In the example, `findings-note.md` shows its original heading, `Snack concept test summary`.

![Findings note preview with the restored Snack concept test summary heading](@/assets/images/work-with-agents/file-recovery-heading-restored.png)

If the preview still shows the edited version, reopen the file from the project folder. Check that the file belonged to the project and that its earlier contents were recorded. Temporary files, excluded files, and large files added during the request can be absent from recorded versions.

## Bring back the edit

If you decide to keep the edit, select **Undo** in the notice that appears after the rewind. It reverses the rewind.

![Rewound notice with its Undo action highlighted](@/assets/images/work-with-agents/file-recovery-rewound-notice.png)

After the notice closes, clear the draft if it is still in the message box. Type `/redo` and select **Redo the last undone message**. Check that the reply and edited file version return.

![Redo the last undone message highlighted after typing /redo](@/assets/images/work-with-agents/file-recovery-redo-command.png)

## Next steps

Once you have checked the version you want to keep, continue the conversation. To make a different edit after rewinding, review the draft before sending it.

Source: https://docs.insightgig.ai/work-with-agents/settings/recover-file-changes/index.mdx
