Skip to content

[Bug]: Nested Projects Overlap in Monorepo #2054

@tlh38

Description

@tlh38

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Add project for the root directory of the project
  2. Observe a new project thread folder is added
  3. Add a project for a directory that is inside of the first project that was added
  4. Observe that there is no new folder created for this nested project, but a thread is opened and can be created at the new location
  5. Now delete the first project folder
  6. Observe that the second project folder will now appear it the first project's place

Expected behavior

A new project folder should be created for every directory the user selects unless the project folder already exists.

This allows for you to create a folder per scope of work, which is very useful in a mono-repo.

Actual behavior

Project folders that are created that have the same parent directory overlap, with all of their threads under the same project folder and not being able to create a new thread for any of the other projects.

Impact

Major degradation or frequent failure

Version or commit

0.17 & nightly

Environment

Windows 11

Logs or stack traces

Screenshots, recordings, or supporting files

nested-directories.mp4

Workaround

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions