@devries-cameron20 / t3code Mirror · read-only / commits / a830cd5b1a
Fork 0

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 25, 17:15 UTC

Use history replace when toggling chat diff view

- Add `replace: true` to thread navigation in `ChatView` - Prevents extra browser history entries when opening/closing diff mode

Julius Marminge committed Feb 26, 2026 at 18:10 UTC a830cd5b1a7bacd06f3fc78d7c2d97065c603d38
1 file changed +1
apps/web/src/components/ChatView.tsx
+1
@@ -623,6 +623,7 @@ export default function ChatView({ threadId }: ChatViewProps) {
623 void navigate({
624 to: "/$threadId",
625 params: { threadId },
626 + replace: true,
627 search: (previous) => {
628 const rest = stripDiffSearchParams(previous);
629 return diffOpen ? rest : { ...rest, diff: "1" };