# Retarget diff panel to active route thread on visit · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/b253d1f8ca8f107933034ed76abc2cb20dbaa52b)

Repository: [gitcafe/t3code](https://git.cafe/gitcafe/t3code)

Visibility: public

Requested revision: b253d1f8ca8f107933034ed76abc2cb20dbaa52b

Requested commit: b253d1f8ca8f107933034ed76abc2cb20dbaa52b

Commit: b253d1f8ca8f107933034ed76abc2cb20dbaa52b

Tree: 7aab4114f91af36a1a8a1fc446d7c21c0f867fb5

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Retarget diff panel to active route thread on visit

- Prefer route thread id over stored diff thread when rendering diffs
- When visiting a different thread with diff open, retarget diff state and clear stale turn/file selection
- Add reducer test coverage for open-diff retargeting behavior

```

## Parents

- [564474f92711bbd496376b8abe4ee7500c2a8d5f](https://git.cafe/gitcafe/t3code/commit/564474f92711bbd496376b8abe4ee7500c2a8d5f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/b253d1f8ca8f107933034ed76abc2cb20dbaa52b?format=markdown)
