Skip to content

fix(app): fix upload child folder of repo bug#16684

Open
natewill wants to merge 6 commits intoanomalyco:devfrom
natewill:opencode/nested-child-project-root
Open

fix(app): fix upload child folder of repo bug#16684
natewill wants to merge 6 commits intoanomalyco:devfrom
natewill:opencode/nested-child-project-root

Conversation

@natewill
Copy link
Contributor

@natewill natewill commented Mar 9, 2026

Issue for this PR

Closes #16645 and
Closes #16713

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Issue #16645 shows uploading a child folder of a git repo that is in the side bar duplicates the project, while issue #16713 shows uploading child folders of a git repo not in the sidebar break the UI

This PR resolves all uploaded directory paths within a git repo to said repo's root, even if the repo hasn't been opened before child folder upload.

The backend already resolves project paths the same way but the frontend root resolution wasn't working properly so I fixed it.

How did you verify your code works?

Tested on desktop app and web app, including testing by uploading multiple worktrees at once, symlinked worktrees, deeplinks, etc. while also running local tests that all passed

Screenshots / recordings

Before and After Fix:

https://youtu.be/SUX5ZuyzvvQ

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@natewill natewill requested a review from adamdotdevin as a code owner March 9, 2026 03:30
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions bot added needs:issue needs:compliance This means the issue will auto-close after 2 hours. contributor labels Mar 9, 2026
@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Mar 9, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@natewill natewill changed the title fix(app): resolve opened directories to canonical project root fix(app): fix upload child folder of repo bug Mar 9, 2026
@natewill
Copy link
Contributor Author

natewill commented Mar 9, 2026

#16684 and #16683 share some setup changes in the "Open Project" workflow so each PR can run independently from my fork.
merge #16684 first then #16683!

@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Mar 9, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@adamdotdevin
Copy link
Member

hey @natewill i'm not seeing the videos, they don't seem to load

@natewill
Copy link
Contributor Author

natewill commented Mar 9, 2026

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.

[BUG] Uploading child folder of git repo breaks UI [BUG] Project picker breaks when adding nested child folder from existing project repo

2 participants