gh-stack icon indicating copy to clipboard operation
gh-stack copied to clipboard

[Bug]: agent skill does not cover --accept-base-change for sync/rebase

Open Itz-Agasta opened this issue 1 week ago • 0 comments

Describe the bug

The agent skill shipped in v0.3.0 (skills/gh-stack) does not mention the new --accept-base-change flag. Its "Non-interactive use" table lists the flags an agent must always pass so a command never opens a prompt, but gh stack sync and gh stack rebase now ask for confirmation when GitHub retargeted the stack after its base branch was deleted and the old base did not merge (gh stack sync --help: "Removing commits from an old base that did not merge requires confirmation, or --accept-base-change"). An agent following the skill under a PTY can reach that confirmation with no guidance.

Additional context: skills/gh-stack/SKILL.md at tag v0.3.0 still says version: "0.2.0" in its frontmatter.

Affected command

gh stack sync, gh stack rebase (agent skill docs)

gh-stack version

gh stack version 0.3.0

GitHub CLI version

gh version 2.105.0 (2026-11-18)

Operating system

Arch Linux, kernel 6.18.64-1-lts

Shell

zsh

Steps to reproduce

  1. Fetch the skill at the release tag: gh api "repos/github/gh-stack/contents/skills/gh-stack/SKILL.md?ref=v0.3.0" -q .content | base64 -d > SKILL.md (same for references/*.md)
  2. grep -rn "accept-base-change" SKILL.md references/ returns nothing.
  3. Compare with gh stack sync --help and gh stack rebase --help, which both document the flag and the confirmation it skips.
  4. grep -n "version" SKILL.md shows version: "0.2.0".

Expected behavior

The skill tells agents when to pass --accept-base-change (or how to detect a retargeted base) for sync and rebase, ideally as a row in the "Non-interactive use" table and in references/commands.md/troubleshooting.md, with the caution that it drops commits from an old base that never merged. The frontmatter version matches the release.

Actual behavior

No mention of the flag or the retarget confirmation anywhere in the skill; the frontmatter version is stale.

Terminal output

$ grep -rn "accept-base-change" skills/gh-stack
$ gh stack sync --help | grep -n base-change
did not merge requires confirmation, or --accept-base-change.
      --accept-base-change   Rebase onto a retargeted base even if the old base did not merge

Preflight checks

  • [x] I searched the existing issues for duplicates.
  • [x] I ran gh extension upgrade stack and reproduced this issue on the latest stable release.

Itz-Agasta avatar Nov 21 '26 19:11 Itz-Agasta