Repository navigation
feat(cli): refresh lists what the releases it crosses change for a patch - #1186
Merged
Merged
Conversation
Owner
Author
|
Review (GPT 6.1 Sol, xhigh) on 3d330d1: PASS, no findings.
|
1 of 2 tasks
Owner
Author
Acceptance: PASS with notesChecked Done means
The crossing refresh, its repeat, and the comparisons$ pnpm --silent patchy --version # repo last generated by release 13, TypeScript 6.0.3
0.13.0
$ pnpm --silent patchy refresh --json # trimmed to ok, release, warnings
{
"ok": true,
"release": { "from": "0.13.0", "to": "0.34.0" },
"warnings": [
"This repo has TypeScript 6.0.3; this release publishes only TypeScript ^7.0.2 (tested against 7.0.2). Run: pnpm add --save-dev 'typescript@^7.0.2'. …",
"Changed in 0.22.0: Publish needs TypeScript 7: …",
"Changed in 0.24.0: A tier 1 page reaches only its own tables and files. …",
"Changed in 0.25.0: Tier 0 is gone: …",
"Changed in 0.30.0: Pages build on Preact 11, whose types are stricter, …",
"Changed in 0.31.0: The member directory includes the patch's guests, …",
"Changed in 0.32.0: A Pidgeon send held by the recipient cooldown, …"
]
}
compared with patchChangesBetween(13, 34): {"releasesListed":[22,24,25,30,31,32],"matchesReleaseList":true,"noDuplicates":true,"oldestFirst":true}
$ pnpm --silent patchy refresh --json # again, now on 0.34.0
{
"ok": true,
"release": { "from": "0.34.0", "to": "0.34.0" },
"warnings": [
"This repo has TypeScript 6.0.3; this release publishes only TypeScript ^7.0.2 (tested against 7.0.2). …"
]
}
compared with patchChangesBetween(34, 34): {"releasesListed":[],"matchesReleaseList":true,"noDuplicates":true,"oldestFirst":true}/whats-new (Ben) 200 patch-change probes 0/12, "Changed in" absent, release titles 2/2
/ (Ben) 200 patch-change probes 0/12, "Changed in" absent
/whats-new.json (public) 200 patch-change probes 0/12, "Changed in" absent, release titles 2/2
refresh output (control) patch-change probes 12/12Golden journeys
Rollback answers: they match the diff. There's no migration and nothing is stored. Not run
Notes
|
allisonmahmood
force-pushed
the
lane-d/refresh-ts7-warning
branch
from
November 4, 2026 02:53
8fea661 to
4cb292c
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
allisonmahmood
force-pushed
the
lane-d/refresh-release-changes
branch
from
November 4, 2026 03:05
3d330d1 to
2363aab
Compare
1 of 2 tasks
allisonmahmood
added a commit
that referenced
this pull request
Nov 4, 2026
…ges publish (#1241) ## What changed This adds release 36's What's new entry, written from `1acc968`. It covers everything merged since release 35's `through` (`dd0e2ec`), and sets the `patchy` release to `0.36.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. | Change | PRs | | --- | --- | | Improved: shortcuts work where you use them (keys for one part of a patch, the closest wins, text boxes keep their typing keys) | #1231 | | Improved: the shortcuts sheet shows what works where you are (Ctrl+/ and ⌘/ open it, its commands run, it opens from a patch's menu and in view on a narrow screen, keeps the look, spells keys out away from a Mac) | #1231, #1181, #1178, #1180, #1177 | | Fixed: keys pressed while a patch opens reach it | #1183 | | Fixed: pages styled with Tailwind 4 publish, and a look with the same rule saves | #1191 | | Fixed: an old copy of a patch no longer replaces newer work (**Breaking** for such a copy: it needs `patchy pull` or one `--allow-behind` publish) | #1179 | | Improved: your agent can check a publish before sending it | #1188 | | Improved: your agent hears what changed when it updates a patch | #1186, #1185 | | Fixed: your agent stops chasing false alarms (`pnpm install` exit codes, `manifest.json` bytes, the description notice, a copied dev record) | #1176, #1174, #1175 | | Behind the scenes: fuller hotkeys instructions for agents; fewer redraw costs for patches with many shortcuts | #1182, #1187 | `patchChanges` has three sentences for the agent refreshing a patch across this release: - #1231's, from its PR: text fields keep their keys, `preventDefault()`, and the sheet's Mod+/ and `.hotkey-row` buttons. - The sheet's dialog renders in `document.body`, and element-only page rules don't reach it (#1178, #1180). Its own row lists last (#1181). The hotkey label helpers take only valid literals (#1177). - Publish's `unknown_base_version` (#1179). It also rewords release 33's "Press ? to see every shortcut a patch has". That was true only for a patch that mounts the shortcuts sheet, so it now says a patch *can* list its shortcuts. The rest get no line: - #1206, #1207, #1209 and #1220 are `pnpm dev eval` tooling. - #1222 is release 35's own entry. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`, and release 33's reworded line. - **Rollback safety, from the live commit `d28fdd0` (release 35) to `1acc968`:** - #1191 is labelled `one-way`. Its Release impact: a company look published after this release with a nested `@supports` condition stays stored after a revert. Release 35 refuses any bundle carrying it, so repo publishes in that company would fail until an admin runs `patchy look restore` to an earlier revision. Pages and Tailwind 4 repos already published stay published. - #1183 is the only change to what the server serves browsers: the shell's script, under a digest-named URL. Its revert leaves nothing behind. - The hotkeys PRs change `patchy/hotkeys`, which patches bundle when they are built. Published patches keep their copy. - The CLI PRs change what a CLI writes and refuses. Release 35 reads everything they leave behind: #1176's `allowBuilds` entry, #1174's indented `manifest.json`, and the `version` recorded by an `--allow-behind` publish. **Rollback line:** If this release misbehaves, roll back to `d28fdd0` (release 35). First check that no company's look has a nested `@supports` condition, and `patchy look restore` an earlier revision where one does (#1191). ## How it was verified - **Tests.** `whatsNew.test.ts`, `WhatsNewPages.test.ts` and `schemas.test.ts` pass (22 tests), and `bun fmt` passes on the changed files. - **Facts.** The sheet's new `document.body` home and its element-rule reset were checked against `hotkeys.ts` and `hotkeySheet.ts` on main. - **Deploy state.** I pinned the live commit from `/healthz/deep`: `d28fdd0` (release 35). The Deploy run updated last succeeded, and none is unfinished. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Text and version numbers only. Like every release, the `0.36.0` bump tells CLIs and patch repos installed before this deploy to upgrade. - **What does a revert leave behind?** Nothing. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, through T3 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.
What changed
Refresh named new SDK capabilities, but not the behaviour changes in the releases it skipped. An agent upgrading a patch across several releases wasn't told that pages had moved to Preact 11's stricter types, or that
ctx.members.list()now returns the patch's guests. One patch counts every member as staff, so a guest would be miscounted. Now a refresh that crosses releases lists each change in them that can make an existing patch build or behave differently. A refresh within one release lists nothing.Closes #1166
Look at
packages/core/src/whatsNew.tsgainspatchChanges: sentences for the agent refreshing a patch, naming what to check. It's required, so the agent writing the next release decides each time, and the header says when to write one. Backfilled for releases 22 (TypeScript 7), 24 (tier 1 reaches only its own tables and files), 25 (tier 0 gone), 30 (Preact 11's types), 31 (guests in the member directory), 32 (Pidgeon's recipient cooldown) and 35, which merged after this was written (patchy/hotkeys'srepeat: false, input-method composition and symbol keys, from fix(sdk): hotkeys hold repeat: false across remounts, wait during composition and accept shifted symbols #1152). The rest are[]. These never reach the What's new page or/whats-new.json.patchy/_generated/index.json, not yet replaced at that point), and adds aChanged in 0.<id>.0: …warning for each patch change after it, oldest first (releaseChanges.ts). The CLI's import allowlist gains@patchy/core/whatsNew.Transcript
old-cli-crossed-releasesBefore is
8fea661(--base) and after is3d330d1(lane-d/refresh-release-changes), both on theteamscenario, frompnpm dev transcript.Each line ran in its own
bash -cfrom the side's agent workspace, as the scenario's signed-in CLI, with stdin closed. Each side's origin reads<origin>, its environment folder<env>, its checkout<checkout>and the home folder~; nothing else is normalized. Nothing in it matched a collected secret (each side's CLI state, machine-token, login-code, API-key and access-token shapes, email addresses outside the scenarios' example domains, secret-named variables, and any accounts the run acts as).1 of 3 lines changed.
A repo last generated by release 13, pinned to its 0.13 CLI and still on TypeScript 6
$ patchy init old-notes --purpose "Synthetic notes" --json > /dev/null && cd old-notes && pnpm add --s…: no change, exit 0 in 4.8 sLines are cut at 400 characters.
--jsonhas it all.Its own 0.13 CLI refreshes it to the instance's release
Changed. Before, exit 0 in 3.4 s; after, exit 0 in 2.4 s.
Refreshing again, now within one release
$ cd old-notes && pnpm --silent patchy refresh --json | node -e 'const r = JSON.parse(require("fs").re…: no change, exit 0 in 2.0 scliRepo.test.ts, a repo last generated by release 29 must list exactly what releases 30 onward record, then nothing on a second refresh. WithtoolchainChild.tsrestored to the base's, it fails:AssertionError: expected [] to deeply equal [ …(3) ].How it was verified
Locally, with CI running the full suite:
pnpm checkon this branch: format, lint and synth pass. Typecheck caught the portal's What's new test fixtures missingpatchChanges; they have it now, one fixture showing it stays out of/whats-new.json, andturbo run typecheck typecheck:testspasses. The offline test step's 25 failures were stray-request asserts and 5-second timeouts under load in files this doesn't touch; those files passed on their own,cliPublish's request-counting sharing test on 3 reruns of 3.cliRepo.test.ts(the new test, and fix(cli): refresh from an old CLI warns about TypeScript 7 #1185's cross-release test, which now also expects a crossed release's line through an installed CLI),whatsNew.test.tsandWhatsNewPages.test.tspass.pnpm verifylocally; CI is the judge for the full suite.Release impact
It adds warnings to refresh and a field to the release list.
Built by Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, through T3 Code.