Skip to content

Commit 04841e8

Browse files
committed
fix: newly added projects not appearing in sidebar
Call touchProject() after adding a project to ensure isActive is set to true. The sidebar filters to only show projects where isActive is true, so without this call newly added projects would be hidden.
1 parent 1ab2a4e commit 04841e8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,8 @@ function App() {
14551455
if (path) {
14561456
try {
14571457
const project = await addProject(path);
1458+
// Ensure project is marked as active in backend state
1459+
await touchProject(project.id);
14581460
setExpandedProjects((prev) => new Set([...prev, project.id]));
14591461
// Activate the newly added project immediately
14601462
setOpenProjectIds((prev) => new Set([...prev, project.id]));

0 commit comments

Comments
 (0)