WEBVTT

00:00:00.099 --> 00:00:03.939
Let's say I'm not happy with the changes
my agent

00:00:04.480 --> 00:00:08.199
applied here,
and I accidentally already accepted them

00:00:08.340 --> 00:00:12.119
reviewing them closely.
You can always undo

00:00:12.159 --> 00:00:15.699
what the AI did. For one, of course,
you could use version

00:00:15.739 --> 00:00:19.659
control and Git to create commits
and go back to older commits, and that's

00:00:19.719 --> 00:00:22.940
always a good idea.
But inside of your chat

00:00:23.059 --> 00:00:26.779
sessions,
you also have this restore checkpoint

00:00:26.960 --> 00:00:30.839
button here, and
that will simply undo that last

00:00:31.299 --> 00:00:33.880
result that was generated by the agent.

00:00:34.720 --> 00:00:38.360
You can also restore by clicking on your
message

00:00:38.440 --> 00:00:42.239
before a certain action was performed,
and you can then edit

00:00:42.319 --> 00:00:45.959
it, and for example, say,
"Comment all your changes in the

00:00:46.079 --> 00:00:49.959
code." And if you then submit this,
it will also undo that

00:00:50.020 --> 00:00:53.799
result that came after the original
message and redo it

00:00:53.860 --> 00:00:57.700
based on your new instruction.
Here it also tells me

00:00:57.759 --> 00:01:01.739
that it will remove my last request
and redo everything, though you

00:01:01.799 --> 00:01:05.619
can, of course, disable this box. So now,
it

00:01:05.720 --> 00:01:09.599
also restored the code to the previous
checkpoint and now rewrites

00:01:09.659 --> 00:01:13.099
it, and what's, of course, worth noting
is that these AI

00:01:13.180 --> 00:01:17.079
systems are not deterministic.
So the result you get now,

00:01:17.220 --> 00:01:20.919
even if it were exactly the same
instruction as before, is not

00:01:21.000 --> 00:01:23.999
necessarily the same as we had before.

00:01:24.040 --> 00:01:27.379
It's not guaranteed to be the same because
there is some randomness

00:01:27.479 --> 00:01:30.919
involved. But, of course,
it's very important to know about this

00:01:31.060 --> 00:01:34.779
checkpoints feature because
if AI does mess something up and you wanna

00:01:34.819 --> 00:01:38.799
undo it, including maybe files that
were deleted or something like

00:01:38.819 --> 00:01:41.359
this, you can just restore and you'll be

00:01:41.400 --> 00:01:42.999
fine.
