Skip to content

#187 base-branch picker #773

Closed
Closed

Description

@currentbits

Implement GitHub #187: optional base-branch picker at thread creation so stacked threads can target a branch other than the repo default.

Context: #770 now hardwires Git-tab Merge (no intoPath) to origin/HEAD → main. #187 assumed that was already true and asked for an explicit override: record a base branch on the thread, then setupWorktree / mergeWorktree / createPr use that recorded base instead of the repo default. Default stays origin/HEAD when unset.

Do not remelt #766, #770, or #772. Do not recut a nightly.

Read #187. Add tests for: unset base still lands on origin/HEAD; set base (e.g. a feature branch) makes Merge and PR target that branch; picker at thread creation.

Repo: currentbits/solenta.

Filed from a Solenta suggested-work chip.

Activity

  1. added
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Aug 29, 2026
  2. currentbits commented on Aug 29, 2026

    @currentbits
    OwnerAuthor

    Implemented on coder/187-base-branch-picker-95f0a9 without remelting #766/#770/#772.

    • ThreadInfo.baseBranch recorded at create (null = repo default).
    • setupWorktree / Git-tab Merge (no intoPath) / createPr use the recorded base, else origin/HEAD → main.
    • Create-menu On another base… picker.
    • Tests: unset still lands on main while the checkout is on a feature; set base retargets Merge and PR; picker at thread creation.

    Out of scope here: post-create Change base / rebase (#774/#775).

  3. added
    plan:done
    and removed
    plan:doing
    on Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions