Repository navigation
fix(patchy): init and look publish tell an outdated global CLI to upgrade - #654
Merged
Merged
Conversation
allisonmahmood
force-pushed
the
t3/global-cli-release-checks
branch
2 times, most recently
from
October 13, 2026 12:37
07c361b to
e0ffc28
Compare
…rade Only file publishing refused a global CLI whose release differs from its instance's. init and look publish now refuse it too, with the installer line that upgrades the CLI and its global skill, before any purpose prompt, repo write or send. The check is one helper, requireCurrentCli. Co-Authored-By: Claude Opus 5.5 <[email protected]>
allisonmahmood
force-pushed
the
t3/global-cli-release-checks
branch
from
October 13, 2026 12:47
e0ffc28 to
5e046d8
Compare
allisonmahmood
added a commit
that referenced
this pull request
Oct 13, 2026
…when Patchy is out of date (#659) Release 10's What's new entry, written through `64458b2`. It ships as `patchy` `0.10.0`. **Changes** - Fixed: New pages and tools no longer get lost in a temporary folder (#658) - Fixed: Your agent hears when its copy of Patchy is out of date (#649, #654) - Improved: See a sample tool in your look before you approve it (#656) - Improved: Publishing the company look says who it's for (#655) **Behind the scenes** - Connections to your company's data now record what kind of service each one reaches (#648) **No line:** #642, a rename of the glossary docs. This is the first release with its own version number. After it deploys, global CLIs from earlier deploys (all `0.0.1`) are refused on file publish, `init` and `look publish` with the installer line. Patch repos are told to `pnpm patchy refresh`, as on any release. Made by Claude Opus 5.5 via Claude Code. Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #649. Only
patchy publish <file>refused a global CLI whose release differs from its instance's.patchy initandpatchy look publishran on an outdated CLI without a word. That left people on an old global skill and missing newer commands, andlook publishran an older release's look checks.Both now refuse with
release_mismatchand the instance's installer line, the same as file publishing. Rerunning the installer upgrades the CLI and its global skill.initchecks right after sign-in, before it asks for a purpose or writes anything.look publishstill refuses a failing look before any request, as ADR-0004 promises, then checks the release before sending. The three call sites share one helper,requireCurrentCli.The rule is that new work outside a repo needs the current CLI.
login,whoami,look,look restore,look previewand the lifecycle commands stay unchecked. They start nothing new, and the instance has the final say on them.ADR-0004, ADR-0011, the README, the Release glossary entry,
docs/product.mdand the globalpatchyskill now describe this. The skill's lock hash is refreshed.New cases in
cliLook.test.tsandcliRepo.test.tsfailed against the old build and pass now.pnpm checkpassed format, lint, typecheck and synth. Ten test files timed out while another worktree was loading the machine; all ten pass on a rerun (131 tests). A GPT 6.1 Sol review had one wording nit ("behind" → "differs from", since a rollback can leave a CLI ahead), which is fixed.Made by Claude Opus 5.5 via Claude Code.