Skip to content

Conversation

@ariane-emory
Copy link
Owner

DUMMY PR, IGNORE.

- Fix kv.signal() to not overwrite persisted values during async load
- Update Session component to use kv.signal() for sidebar state
- Remove redundant kv.set() calls in sidebar toggle
- Ensure sidebar state (show/hide/auto) persists correctly across restarts
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

Hey! Your PR title Fix/persist sidebar doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

The sidebarVisible memo was only checking for sidebar() === 'auto',
but this branch added a third state 'show'. When sidebar is 'show'
and the app restarts, sidebarOpen (an ephemeral signal) resets to
false, causing the sidebar to not appear until toggled twice.

This adds the missing check for sidebar() === 'show' to properly
restore sidebar visibility on app restart.

Also fixes kv.signal setter patterns to not use function syntax
(kv.signal setters take values directly, not functions).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants