Skip to content

fix(app): add worktree selector for git worktrees#14374

Open
swalker326 wants to merge 14 commits intoanomalyco:devfrom
swalker326:fix/app-worktree-selector
Open

fix(app): add worktree selector for git worktrees#14374
swalker326 wants to merge 14 commits intoanomalyco:devfrom
swalker326:fix/app-worktree-selector

Conversation

@swalker326
Copy link

@swalker326 swalker326 commented Feb 20, 2026

Issue for this PR

Closes #13782

Related: #14082, #10665

Type of change

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

What does this PR do?

This adds a git worktree selector in the project header while preserving existing workspace sidebar behavior.

  • Adds explicit worktree selection/switching for git projects.
  • Restores sortable workspace rows and workspace actions (rename/reset/delete/reorder) in the sidebar.
  • Keeps project navigation stable by remembering the active workspace and using safer fallback behavior during pending worktree sync.
  • Updates workspace e2e coverage to match the new selector model (no enable/disable toggle path, but workspace lifecycle coverage remains).

How did you verify your code works?

  • Ran bun test:e2e:local -- e2e/projects/workspaces.spec.ts e2e/projects/projects-switch.spec.ts e2e/projects/workspace-new-session.spec.ts in packages/app
  • Ran full bun test:e2e:local in packages/app (98 passed, 3 skipped)
  • Ran bun turbo test from repo root (all tasks successful)
  • Push hook also ran bun turbo typecheck successfully

Screenshots / recordings

UI change verified locally; can add updated screenshots if maintainers request.

image

Checklist

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

@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Feb 20, 2026
@github-actions
Copy link
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-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found a potentially related PR:

Related PR:

The other results (#4817, #12008, #14266) address different aspects of worktree or git functionality but don't appear to be direct duplicates of the worktree selector fix in PR #14374.

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

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

Keep the new git worktree selector while restoring sortable workspace rows and action flows so workspace lifecycle actions and project switching remain stable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sessions gets mixed up across worktrees

1 participant