# Make sidebar v2 the only sidebar · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/c5610286c8c924e5756871a8f911f861c61a7716)

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

Visibility: public

Requested revision: c5610286c8c924e5756871a8f911f861c61a7716

Requested commit: c5610286c8c924e5756871a8f911f861c61a7716

Commit: c5610286c8c924e5756871a8f911f861c61a7716

Tree: 9013016f419e9fac4b91e6e70778b988e88ce790

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Make sidebar v2 the only sidebar

Retires the `sidebarV2Enabled` beta flag and deletes the v1 sidebar.

- `AppSidebarLayout` always renders `SidebarV2`; the settings-route nav
  moves into `SidebarV2` (it lived in v1 only, which is why v1 stayed
  mounted on `/settings*`).
- `data-sidebar-version` is gone: both palettes were already identical,
  so the sidebar tokens key off `data-app-sidebar` instead.
- `chat.new` routes through the command palette whenever there is more
  than one project group, which was the v2 branch.
- Drops the flag from `ClientSettingsSchema`/`ClientSettingsPatch`.
  Stored settings that still carry it decode fine (excess keys are
  ignored), covered by a regression test.
- Removes `sidebarThreadPreviewCount`, whose only reader and only UI
  were in the v1 sidebar, along with the now-orphaned
  `preview/openDiscoveredPort.ts`.

Co-Authored-By: Claude <noreply@anthropic.com>

```

## Parents

- [1153afb4fb694944b5c25e2153b904a85cf47d70](https://git.cafe/pingdotgg/t3code/commit/1153afb4fb694944b5c25e2153b904a85cf47d70?format=markdown)

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