Every new worktree starts from a branch. Before version 1.3.0 of the Unstoppable desktop app, a task started from Home branched from the workspace's default. Version 1.3.0 adds a base picker to the Home composer, and a warning when an open pull request targets a different base than the one its worktree tracks.
Pick a base when you start a task
On Home, in a single-repository workspace, choose New worktree as the target. A base picker appears beside it, showing the branch the new worktree will start from. By default that is the repository's default branch, or the checked-out branch when no default is known. Click it to choose from three tabs, each with a search box:
- Worktrees: start from the branch of a worktree you already have, to build on work that hasn't merged yet.
- PRs: start from an open pull request's branch. The new worktree gets a new branch created from the pull request's head; it doesn't check out or change the pull request. Pull requests from forks aren't listed.
- Branches: start from any branch, marked local or remote. A local branch is used as it is, without fetching; a remote branch is fetched first.
The choice carries through when you schedule the task from Home instead of sending it now.
When a pull request's base differs
A worktree records the base branch it compares against and updates from. Its pull request can target a different one, for example after the pull request is retargeted on GitHub. Then local comparisons describe a branch the pull request won't merge into.
When an open or draft pull request targets a different base than its worktree tracks, the pull request bar shows a warning icon labeled Base branch differs from PR. Its tooltip, Base branch drift, names both branches and ends with Click to align with the PR. Clicking opens Align base branch with PR?, which explains that this updates the locally tracked base branch to match the open pull request and does not modify the pull request. Choose Update base branch to align, or Cancel.
The warning works for multi-repository workspaces too, listing each repository whose pull request base differs.
Where it stops
The base picker is for single-repository workspaces only; multi-repository and Cowork workspaces don't show it. Choosing a pull request starts a new branch from it rather than working on the pull request itself. The drift warning covers open and draft pull requests, not merged or closed ones, and aligning changes only the worktree's record, never the pull request on GitHub.
Tommy Irish built the base picker and the drift warning.
Try it
The base picker and the drift warning are in version 1.3.0 of the Unstoppable desktop app. Download it, open Home in a single-repository workspace and choose New worktree.
