Reverting Tasks

Reverting a Task in LatchLoop

LatchLoop makes it easy to experiment with code changes, review AI-generated suggestions, and iterate on your software projects. Sometimes, you may want to undo a set of changes or start over from a previous point. The Revert Task feature is designed to help you do just that, safely and efficiently.

This article explains how the revert feature works, when to use it, and what to expect when you revert a task.


What is the Revert Task Feature?

The Revert Task feature lets you undo changes that were made during a specific coding session or set of commits in your LatchLoop task. This is especially useful if:

  • You want to discard recent changes and return to a previous state.
  • You want to retry your request with different instructions.
  • You want to clean up your task history and start a new session.

Reverting is safe: your previous work is not deleted, but is hidden from the main view so you can focus on your current direction.


How Do I Revert a Task?

You can revert a task from the Activity (AI Messages) sidebar for any task. Here’s how:

  1. Open the Task you want to revert.
  2. Click the Activity button (the sidebar with the branch icon) to open the AI Messages sidebar.
  3. Find the message or run you want to revert (for example, after a set of code changes or a user request).
  4. Click the Revert button next to that run or user request. You may be asked to confirm your choice.
  5. After confirming, LatchLoop will revert your task to the selected point.

Tip: You can only revert to earlier points in the task’s history. The revert button is available next to each user request or run, so you can easily undo one or more rounds of changes.


What Happens When I Revert?

When you revert a task, LatchLoop will:

For Code Changes (“Commits” mode)

  • Reset the task’s code branch to the state it was in at the selected point (commit).
  • Hide all AI messages and code changes that happened after that point, so your activity feed and context are clean.
  • Restore your previous user request in the feedback box, so you can easily edit and resubmit it if you wish.
  • Log a system event in the activity feed, so you can see when and what was reverted.

For Full Session Restarts (“Session” mode)

  • Close any open pull request for the task.
  • Start a new retry branch for your next attempt.
  • Hide all previous AI messages and code changes for the task, giving you a fresh start.
  • Log a session restart event in the activity feed.

What Does “Reverted” Mean in the Activity Feed?

When you revert, LatchLoop marks the affected AI messages and code changes as reverted. These are hidden from the sidebar and are not included in future AI context, but are still stored for your records.


Can I Undo a Revert?

Reverts are designed to be a safe way to clean up your task history, but they cannot be undone. If you revert by mistake, you can always resubmit your previous request (which is restored for you in the feedback box) or reapply changes as needed.


When Should I Use the Revert Feature?

Use revert when you want to:

  • Undo a set of code changes that didn’t work as expected.
  • Retry your request with different instructions.
  • Start a new session if your task has gotten off track.

The revert feature is a powerful way to keep your project history clean and focused on your goals.


Frequently Asked Questions

Q: Will reverting delete my previous work?
A: No. Reverted changes are hidden from the main view but are still stored for your records.

Q: Can I revert multiple times?
A: Yes! You can revert as many times as you need, to any earlier point in your task’s history.

Q: What happens to my feedback or instructions after a revert?
A: Your previous feedback or instructions are restored in the feedback box, so you can easily edit and resubmit them.

Q: Can I revert a task after it has been merged?
A: You can revert any task as long as it is still open in LatchLoop. If the task has been merged, you may need to create a new task for further changes.


If you have more questions about reverting tasks or need help, please contact our support team!