Skip to content
freecodeDocsOpen workspace
Browse documentation

Review and restore file changes

Read a file diff, try the result in Preview, or restore one file to how it was before the last task.

Inspect an edit in the conversation

Expand Edit file in the reply that made the change. Original excerpt and Replacement excerpt show the text the agent edited. Choose View all changes in this turn when it appears, then select a file to read its patch. While a task is running, this list can still change.

For a local Desktop project, comparing a turn’s files requires a Git repository. If an earlier turn has no record, open the current file in your editor.

Review the latest task

After a task finishes, open Changes. It lists the files changed since that task started. Expand a filename to read its diff: lines starting with + were added and lines starting with - were removed. If a diff is too large to display or the file is binary, download the source to inspect it.

If the panel says No saved file changes, the task may have only answered a question. Ask which file it edited before starting another task.

Check the result

For a web project, open Preview and try the action you asked for. If you asked freecode to fix a form, submit it once with valid input and once with a required field empty. Preview is for trying the project; it does not publish a website.

Restore one file

In Changes, find the filename and choose Restore this file. Check the path in the confirmation before restoring. Only that file goes back to its state before the last task. If the task created the file, restoring removes it.

Afterward, check files that depend on it. For example, if you restore a component that another file now imports, make sure the page still opens.