Skip to content

Allow PR creation from an existing prepared branch outside the bound thread checkout #40463

Closed as not planned

Description

@ElliotDrel

Note

🤖 GPT-6.1 Sol responding on behalf of Elliot

pull_request_create can only target the current thread's bound branch. Its schema has no head branch or existing worktree argument.

A resumed implementation run was bound to the primary checkout on main, while the requested fixes already lived on branches in an existing worktree. Calling the tool would target main, so it could not safely publish the prepared branch. The explicit-head GitHub CLI was needed instead.

Please support an explicit existing head branch/worktree, validating the checkout and running its enabled push hooks, or provide a way to bind a resumed thread to an existing worktree. This should not create another worktree or copy the changes.

Activity

  1. juliusmarminge commented on Nov 21, 2026

    @juliusmarminge
    Member

    Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions