anomalyco / anomalyco/opencode

new workspace always branches from the current head

Open
#39,778 1 comment 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Jul 31, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

describe the bug

creating a new workspace (worktree) always branches from the current head of the project checkout.

the branch chip in the new session bar is display only. there is no way to pick the base branch before creating the workspace.

git worktree add --no-checkout -b <branch> <dir> is invoked with no start point, so whatever branch you happen to be sitting on becomes the base. if you are on a feature branch, the new workspace silently inherits it.

expected behavior

  • the branch chip should be clickable
  • clicking it should list local and remote branches with search
  • in new workspace mode the selected branch becomes the base ref for git worktree add
  • with no selection the workspace should branch from the repo default branch, not the current head
  • in local or existing workspace mode selecting a branch should check it out

screenshots

(screenshots to be added)

environment

  • desktop app, dev build, new layout
  • macos

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.