Skip to content

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

Closed
natewill wants to merge 6 commits into
anomalyco:devfrom
natewill:opencode/auto-enable-workspaces-sandbox
Closed

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

Conversation

@natewill

@natewillnatewill commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

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

@github-actionsgithub-actionsBot added needs:compliance This means the issue will auto-close after 2 hours. contributor needs:issue labels Mar 9, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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

@natewill
natewillforce-pushed the opencode/auto-enable-workspaces-sandbox branch 2 times, most recently from 7ee3157 to 35b2c39CompareMarch 9, 2026 03:37
@natewillnatewill changed the title fix(app): auto-enable workspaces when opening sandboxfix(app): fix upload worktree workspaces bugMar 9, 2026
@natewillnatewill changed the title fix(app): fix upload worktree workspaces bugfix(app): fix worktree upload workspaces bugMar 9, 2026
@natewill

natewill commented Mar 9, 2026

Copy link
Copy Markdown
ContributorAuthor

#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-actionsgithub-actionsBot 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
Copy Markdown
Contributor

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

@adamdotdevin

Copy link
Copy Markdown
Member

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

@natewill

Copy link
Copy Markdown
ContributorAuthor

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

@natewill@adamdotdevin