# ASP.NET MVC Checkpoint

Conversations with AI agents rarely follow a straight path. Users explore, change direction, and sometimes need to recover an earlier path.

The [Checkpoint component](https://www.telerik.com/aspnet-mvc/documentation/api/checkpoint) adds an anchor between conversation turns and provides two clear recovery actions: restarting the conversation from scratch or regenerating only the latest response without discarding the rest of the thread.

## Configuration

Place a [`StartOver`](https://www.telerik.com/aspnet-mvc/documentation/api/checkpoint/state) checkpoint at the top of the conversation for a global reset, and place `Redo` checkpoints between individual turns for targeted regeneration. The [`State`](https://www.telerik.com/aspnet-mvc/documentation/api/checkpoint/state) value controls both the label and icon, making the upcoming action clear to users.

By default, the separator appears only on hover. Set [`DisplayMode`](https://www.telerik.com/aspnet-mvc/documentation/api/checkpoint/displaymode) to `"always"` in compact or touch-focused layouts where hover may be unreliable.

```Razor HtmlHelper
    @(Html.Kendo().Checkpoint()
        .Name("checkpoint")
        .State(CheckpointState.StartOver)
        .DisplayMode(CheckpointDisplayMode.Always)
    )
```

Handle the [`Action`](https://www.telerik.com/aspnet-mvc/documentation/api/checkpoint/action) event and branch on `event.State`: reset the full thread for `StartOver`, or regenerate only the last response for `Redo`.

## See Also

* [Checkpoint Demo for ASP.NET MVC](https://demos.telerik.com/aspnet-mvc/llm_kit/checkpoint)

* [LLM Kit Overview](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/conversational-ui/llm-kit/overview)

* [Server-Side API of the Checkpoint HtmlHelper](https://www.telerik.com/aspnet-mvc/documentation/api/checkpoint)

* [JavaScript API Reference of the Checkpoint](https://www.telerik.com/aspnet-mvc/documentation/api/ui/checkpoint)
