authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-18 00:23:59-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-02-18 21:59:17-08:00
log5209967a7e8b7a8aad24653c7e15264dbc7b7f4f
treec18ca1952a6079836365718f8a89171e06afa46b
parent867c122082c18d550965e7060dc603e0dcbca862

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

1 files changed, 2 insertions(+), 1 deletions(-)

apps/web/src/components/ChatView.tsx+2-1
......@@ -93,6 +93,7 @@ import {
9393 InfoIcon,
9494 LockIcon,
9595 LockOpenIcon,
96 Undo2Icon,
9697 XIcon,
9798} from "lucide-react";
9899import { Button } from "./ui/button";
......@@ -2601,7 +2602,7 @@ const MessagesTimeline = memo(function MessagesTimeline({
26012602 disabled={isRevertingCheckpoint || isWorking}
26022603 onClick={() => onRevertUserMessage(timelineEntry.message.id)}
26032604 >
2604 {isRevertingCheckpoint ? "Reverting..." : "Revert agent work"}
2605 <Undo2Icon className="size-3" />
26052606 </Button>
26062607 )}
26072608 <p className="text-right text-[10px] text-muted-foreground/30">