The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 23:15 UTC
fix(web): Edit from here warns that "Revert files too" also undoes your own edits (#19775)
Co-authored-by: PR Batch Tester <agent@local.test> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
shivam committed
Oct 20, 2026 at 09:46 UTC
7116325f03add24553385f01cca0e19f4ed8a131
2 files changed
+4
-2
apps/web/src/components/chat/ChatOverlayHosts.tsx
+2
-1
@@ -213,11 +213,12 @@ export function RevertConfirmHost(props: {
213
<AlertDialogTitle>Edit from here?</AlertDialogTitle>
214
<AlertDialogDescription>
215
Rewind chat to before this message. Your prompt and attachments return to the composer.
216
+ “Revert files too” also undoes your own edits.
217
</AlertDialogDescription>
218
</AlertDialogHeader>
219
<AlertDialogFooter>
220
<AlertDialogClose render={<Button variant="outline" />}>Cancel</AlertDialogClose>
220
- <Button variant="destructive" onClick={() => confirm(true)}>
221
+ <Button variant="destructive-outline" onClick={() => confirm(true)}>
222
Revert files too
223
</Button>
224
<Button onClick={() => confirm(false)}>Revert and keep changes</Button>
docs/user/composer.md
+2
-1
@@ -149,7 +149,8 @@ into a normal draft.
149
150
On web and desktop, choose **Edit from here** beneath a sent message to rewind
151
the conversation to before that message. Choose **Revert and keep changes** to
152
-leave workspace files as they are, or **Revert files too** to restore them as well.
152
+leave workspace files as they are, or **Revert files too** to put the workspace back
153
+to its checkpoint from before that message. That also undoes edits you made yourself.
154
File restore is only offered for threads running in a worktree, and it is
155
refused when another thread or agent session also uses that directory, a folder
156
inside it, or a folder that contains it, since