| author | |
| committer | |
| log | a830cd5b1a7bacd06f3fc78d7c2d97065c603d38 |
| tree | 31e2fff770a4d15854fa07311ab8de1c4f02459b |
| parent | d47059a9db4546ce507341bbc8e7c25d0f60300a |
- Add `replace: true` to thread navigation in `ChatView`
- Prevents extra browser history entries when opening/closing diff mode1 files changed, 1 insertions(+), 0 deletions(-)
apps/web/src/components/ChatView.tsx+1| ... | ... | @@ -623,6 +623,7 @@ export default function ChatView({ threadId }: ChatViewProps) { |
| 623 | 623 | void navigate({ |
| 624 | 624 | to: "/$threadId", |
| 625 | 625 | params: { threadId }, |
| 626 | replace: true, | |
| 626 | 627 | search: (previous) => { |
| 627 | 628 | const rest = stripDiffSearchParams(previous); |
| 628 | 629 | return diffOpen ? rest : { ...rest, diff: "1" }; |