fix: auto-expand sidebar when a project is selected#56
Merged
matt1398 merged 1 commit intomatt1398:mainfrom Feb 22, 2026
Merged
Conversation
When the sidebar is collapsed and the user clicks a project, the session list was silently updated behind the hidden panel with no visual feedback, leaving the user confused about why nothing appeared to change. Fixed by setting sidebarCollapsed: false in both selectProject and selectRepository at the moment of selection. Both entry points are covered: - selectRepository: used by the dashboard project cards - selectProject: used by the command palette and keyboard shortcuts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
|
Closing to re-submit after running full quality gates (typecheck, lint, test, build). |
Contributor
Author
|
Quality gates verified before re-opening: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When the sidebar is collapsed and the user clicks a project, the session list updated silently behind the hidden panel — no visual feedback, nothing appeared to happen. The user had to manually re-open the sidebar to see the result.
Selecting a project implies intent to browse its sessions. The sidebar should open automatically to reflect that.
Root Cause
Project selection is handled in two separate store actions:
selectRepository— triggered by dashboard project cardsselectProject— triggered by the command palette and keyboard shortcutsNeither action accounted for the sidebar being collapsed when called.
Fix
Added
sidebarCollapsed: falseto theset()call in bothselectProjectandselectRepository. The change is atomic with the selection itself — the sidebar opens at exactly the same moment the session list updates.Files Changed
src/renderer/store/slices/projectSlice.tsselectProjectsrc/renderer/store/slices/repositorySlice.tsselectRepositoryTest Plan
🤖 Generated with Claude Code