Skip to content

Thread header: replace Push + Create PR with the next-action button #490

Closed

Description

@currentbits

Parent: #382. Depends on the next-action state machine.

Replace the always-visible Push + Create PR header buttons with one primary control that follows the current git step.

  • Commit opens the Changes panel (offers it)
  • Push calls existing onPush
  • Create PR calls git.createPr (falls back to the agent prompt if unwired)
  • Watch checks polls prChecks and links the PR
  • Merge calls prMerge
  • Hide on remote projects and when there is no next step

Wire createPr / prChecks / prMerge from App into ThreadView.

Activity

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

    @currentbits
    OwnerAuthor

    Verified done. NextGitActionButton in src/components/ThreadView.tsx replaced the always-visible Push + Create PR pair; Commit opens Changes, Push calls onPush, Create PR calls git.createPr, Watch checks polls prChecks and links the PR, Merge calls prMerge; hidden on remote projects and when idle. Wired from App.tsx into ThreadView; covered by test/nextGitActionButton.test.tsx.

  3. added
    plan:done
    and removed
    plan:doing
    on Aug 18, 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