Use undo icon for revert action in chat timeline

- Replace "Revert agent work" button text with `Undo2Icon` in `ChatView`
- Keep existing revert behavior and disabled/loading states unchanged
This commit is contained in:
Julius Marminge committed 2026-02-18 00:23:59 -08:00
1 parent 197da25e71
commit b8559eb341
1 file changed
+2 -1
+2 -1
View File
@@ -78,6 +78,7 @@ import {
InfoIcon,
LockIcon,
LockOpenIcon,
Undo2Icon,
XIcon,
} from "lucide-react";
import { Button } from "./ui/button";
@@ -1901,7 +1902,7 @@ const MessagesTimeline = memo(function MessagesTimeline({
disabled={isRevertingCheckpoint || isWorking}
onClick={() => onRevertUserMessage(timelineEntry.message.id)}
>
{isRevertingCheckpoint ? "Reverting..." : "Revert agent work"}
<Undo2Icon className="size-3" />
</Button>
)}
<p className="text-right text-[10px] text-muted-foreground/30">