[Bug]: Sidebar collapsed state is saved but never restored on launch
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
Steps to reproduce
- Open T3 Code (desktop or web).
- Collapse the main left sidebar with the sidebar toggle.
- Quit and relaunch the app (or reload the web page).
Expected behavior
The sidebar stays collapsed after relaunch, the same way its resized width is remembered.
Actual behavior
The sidebar is open again on every launch, so it has to be collapsed by hand each time.
AppSidebarLayout always passes defaultOpen to SidebarProvider (apps/web/src/components/AppSidebarLayout.tsx). On every toggle, SidebarProvider writes the open state to a sidebar_state cookie (apps/web/src/components/ui/sidebar.tsx), but nothing reads that cookie back. In the shadcn/ui template this comes from, a server reads the cookie during server-side rendering. T3 Code has no server-side rendering, so that half was never wired up. The sidebar width is persisted through storageKey, so only the open state is lost.
If starting with the sidebar open on every launch is intentional, could that be confirmed? Then the unused cookie write could be removed. If it isn't intended, I'm happy to open a PR that restores the saved state on launch.
Impact
Minor bug or occasional failure
Version or commit
T3 Code (Nightly) 0.1.3-nightly.20261023.3579
Environment
Windows 11 Pro, desktop app
Logs or stack traces
Screenshots, recordings, or supporting files
No response
Workaround
Collapse the sidebar again after each launch.