# \[Bug\]: Sidebar does not follow active thread after Cmd\+\[ / Cmd\+\] \(back/forward\) navigation · Issue \#16534 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/issues/16534)

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

Visibility: public

State: completed

Priority: 0

## Description

[Discussion and activity](https://git.cafe/pingdotgg/t3code/issues/16534)

---

### Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.

### Area
apps/desktop (sidebar / navigation)

### Steps to reproduce
1. Open T3 Code desktop with 2+ projects, each with several threads. Keep default `sidebarThreadPreviewCount` (6).
2. Open a thread in project A, then open a thread in project B (via Cmd+K, Cmd+1..9, or clicking).
3. Make one of these true for the thread you will return to: its project is collapsed in the sidebar, the sidebar project filter is set to a different single project, or the thread is beyond the first 6 shown in its project.
4. Press `Cmd+[` (navigation.back) to return to the earlier thread, or `Cmd+]` to go forward.

### Expected behavior
The sidebar follows the active route: the owning project is expanded, the sidebar scope is widened if the thread is filtered out, the thread list reveals the thread if it is hidden behind "show more", and the active thread is scrolled into view and highlighted. This matches what a user sees after clicking the thread directly.

### Actual behavior
The main pane switches to the thread but the sidebar does not change. The active thread is not visible or highlighted, so it is unclear which project/thread is now open.

From reading the bundled renderer, `navigation.back` / `navigation.forward` only call `window.history.back()` / `window.history.forward()`. Nothing reveals the active thread in the sidebar on route change (no project expand, no scope reset, no scroll-into-view).

### Impact
Minor bug or occasional failure. It makes back/forward navigation across many projects disorienting.

### Version or commit
T3 Code (Alpha) 0.0.45, macOS (Darwin 25.6.0)

### Workarounds
Set the sidebar filter to "All projects", expand the project manually, increase `sidebarThreadPreviewCount`, or pin the thread.

