Skip to content

fix(app): fix worktree upload workspaces bug#16683

Open
natewill wants to merge 6 commits intoanomalyco:devfrom
natewill:opencode/auto-enable-workspaces-sandbox
Open

fix(app): fix worktree upload workspaces bug#16683
natewill wants to merge 6 commits intoanomalyco:devfrom
natewill:opencode/auto-enable-workspaces-sandbox

Conversation

@natewill
Copy link
Contributor

@natewill natewill commented Mar 9, 2026

Issue for this PR

Closes #16474

Type of change

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

What does this PR do?

Issue #16474 shows uploading a git worktree via "Open Project" when workspaces are disabled results in the main git worktree being displayed the UI instead of the uploaded git worktree. Projects by default have workspaces disabled.

This PR auto-enables the project's workspaces when the uploaded directory matches a git worktree, so the selected worktree is not hidden.

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

https://youtu.be/uDb5Sys8SJ8

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:29
@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. contributor needs:issue labels Mar 9, 2026
@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 removed needs:compliance This means the issue will auto-close after 2 hours. needs:issue 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. 👍

@natewill natewill force-pushed the opencode/auto-enable-workspaces-sandbox branch 2 times, most recently from 7ee3157 to 35b2c39 Compare March 9, 2026 03:37
@natewill natewill changed the title fix(app): auto-enable workspaces when opening sandbox fix(app): fix upload worktree workspaces bug Mar 9, 2026
@natewill natewill changed the title fix(app): fix upload worktree workspaces bug fix(app): fix worktree upload workspaces 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: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.

Branch display shows main repo branch instead of worktree branch when opening a git worktree directory

2 participants