fix: display all project directories in sidebar and toolbar#96
Merged
wesbillman merged 1 commit intomainfrom Apr 4, 2026
Merged
fix: display all project directories in sidebar and toolbar#96wesbillman merged 1 commit intomainfrom
wesbillman merged 1 commit intomainfrom
Conversation
The ProjectOption type used a singular workingDir that only captured the first directory. Switch to workingDirs array so every directory added in the project dialog is shown in the context panel, toolbar tooltip, and project selector dropdown. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18a1e07 to
220a991
Compare
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.
Overview
Category: fix
User Impact: Projects with multiple directories now correctly display all folders in the sidebar context panel and toolbar, instead of only showing the first one.
Problem: When users added multiple directories to a project via the create/edit dialog, only the first directory appeared in the context panel sidebar and the project selector dropdown — making it look like the other directories were lost.
Solution: Changed the
ProjectOptiontype from a singularworkingDirto aworkingDirsarray and updated all consuming components to render the full list.File changes
src/features/chat/ui/ChatInput.tsx
Changed
ProjectOption.workingDir?: string | nulltoworkingDirs: string[]so the type accurately represents multiple directories.src/features/chat/ui/ChatView.tsx
Pass the full
workingDirsarray instead of onlyworkingDirs[0]when buildingavailableProjects, and pass the array toContextPanel.src/features/chat/ui/ChatInputToolbar.tsx
Updated the project selector tooltip and dropdown descriptions to join all directories with commas instead of showing only the first.
src/features/chat/ui/ContextPanel.tsx
Changed prop from
projectWorkingDir: string | nulltoprojectWorkingDirs: string[]. Renders a "Folder:" line for each directory. Git status still uses the first directory since it's per-repo.src/features/home/ui/HomeScreen.tsx
Updated the project-to-ProjectOption mapping to pass
workingDirsarray instead ofworkingDir.src/features/chat/ui/tests/ChatInput.test.tsx
Updated test fixtures to use the new
workingDirsarray shape.src/features/chat/ui/tests/ContextPanel.test.tsx
Updated test fixtures to use the new
projectWorkingDirsprop.Reproduction Steps
🤖 Generated with Claude Code