Refresh the install after git stack update by DomBlack · Pull Request #44 · DomBlack/git-stack · GitHub
Skip to content

Refresh the install after git stack update - #44

Merged
DomBlack merged 1 commit into
mainfrom
update-refreshes-install
Oct 16, 2026
Merged

DomBlack merged 1 commit into
mainfrom
update-refreshes-install

Conversation

@DomBlack

@DomBlack DomBlack commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Updating swapped the binary but left everything git stack install had set up as it was. So the skill kept describing the old release, aliases a new version adds never showed up, and the completion script went stale until you ran install again (and answered its questions again).

Now once the new binary is in place, update hands over to it to bring whatever install set up before in line, without prompting: aliases, completion, the MCP registration if the binary moved, and the skills. It only touches what you installed in the first place, leaves an alias you've pointed elsewhere alone, and only prints what it changed (so most of the time you just get the update line). It has to be the new binary doing this since the completion script and the skill are built into it.

While doing this the skill now goes to Codex too (~/.codex/skills/git-stack, or under $CODEX_HOME), each agent only if you have its config directory. Update also gets its own spinner for the download and ends on a warning line with next steps when there's a release it didn't install, like the rest of the commands.

One thing for releases: the new binary is called as install --refresh (hidden flag), and older binaries will call it on newer ones, so that flag has to keep working. Until this ships, update --force from a dev build lands on v0.3.0, which doesn't have it, so you get an error telling you to run git stack install (the update itself still happened).

Updating swapped the binary but left everything git stack install had set up as it was, so the skill kept describing the old release, aliases a new version adds never showed up and the completion script went stale until you ran install again (and answered its questions).

Update now hands over to the new binary once it's in place, which brings whatever install set up before in line with it without prompting; aliases, completion, the MCP registration if the binary moved, and the skills. It only touches what was installed in the first place and only prints what it changed. It has to be the new binary since the completion script and the skill are built into it, so the hidden install --refresh flag it calls has to keep working in every release.

While doing this the skill now goes to Codex as well as Claude Code (each only when you have that agent's config directory), and update gets its own spinner for the download and ends on a warning line with next steps when there's a release it didn't install.
Copilot AI balanced review requested due to automatic review settings October 16, 2026 08:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@DomBlack
DomBlack merged commit 7aa2ba9 into main Oct 16, 2026
5 of 6 checks passed
@DomBlack
DomBlack deleted the update-refreshes-install branch October 16, 2026 08:09
@DomBlack DomBlack added the enhancement New feature or request label Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants