Skip to content

fix(patchy): init and look publish tell an outdated global CLI to upgrade - #654

Merged
allisonmahmood merged 1 commit into
mainfrom
t3/global-cli-release-checks
Oct 13, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
t3/global-cli-release-checks

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

Follow-up to #649. Only patchy publish <file> refused a global CLI whose release differs from its instance's. patchy init and patchy look publish ran on an outdated CLI without a word. That left people on an old global skill and missing newer commands, and look publish ran an older release's look checks.

Both now refuse with release_mismatch and the instance's installer line, the same as file publishing. Rerunning the installer upgrades the CLI and its global skill. init checks right after sign-in, before it asks for a purpose or writes anything. look publish still 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 preview and 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.md and the global patchy skill now describe this. The skill's lock hash is refreshed.

New cases in cliLook.test.ts and cliRepo.test.ts failed against the old build and pass now. pnpm check passed 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.

@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area size:m 100-500 changed lines labels Oct 13, 2026
@allisonmahmood
allisonmahmood force-pushed the t3/global-cli-release-checks branch 2 times, most recently from 07c361b to e0ffc28 Compare October 13, 2026 12:37
…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
allisonmahmood force-pushed the t3/global-cli-release-checks branch from e0ffc28 to 5e046d8 Compare October 13, 2026 12:47
@allisonmahmood
allisonmahmood merged commit 64458b2 into main Oct 13, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the t3/global-cli-release-checks branch October 13, 2026 12:57
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area size:m 100-500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant