mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #22925] feat: Configurable default sidebar state for new users (desktop UX) #35372
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DywiTom on GitHub (Mar 22, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22925
Check Existing Issues
Verify Feature Scope
Problem Description
The sidebar state is initialized using:
localStorage.sidebar === 'true'
For new users, localStorage.sidebar is undefined, which evaluates to false. As a result, the sidebar is collapsed by default on desktop.
This leads to a suboptimal first-time user experience:
This is especially noticeable in multi-user or shared environments.
Desired Solution you'd like
Improve the default behavior for new users on desktop:
Proposed implementation:
const sidebarDefaultOpen =
localStorage.sidebar == null
? true
: localStorage.sidebar === 'true';
showSidebar.set(!$mobile ? sidebarDefaultOpen : false);
Additionally, it would be useful to make this configurable via an environment variable or admin setting.
Alternatives Considered
Additional Context
There are already known issues around sidebar state handling (e.g. #18149), indicating that this area could benefit from clearer and more predictable behavior.
This change would be backward-compatible, as it only affects users without an existing localStorage value.