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 authored and Julius Marminge committed 2026-02-18 21:59:17 -08:00
1 parent 867c122082
commit 5209967a7e
1 file changed
+2 -1
+2 -1
View File
@@ -93,6 +93,7 @@ import {
InfoIcon,
LockIcon,
LockOpenIcon,
Undo2Icon,
XIcon,
} from "lucide-react";
import { Button } from "./ui/button";
@@ -2601,7 +2602,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">