Skip to content

fix(patchy): pnpm patchy refresh no longer fails after a release change - #489

Merged
allisonmahmood merged 1 commit into
mainfrom
t3code/implement-issue-460
Oct 2, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
t3code/implement-issue-460

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

After a deploy changes the release digest, pnpm patchy refresh failed in every existing patch repo with Could not inspect the repo's installed toolchain. So did add and remove, which share its path. The global patchy worked. The repo's own CLI runs from pnpm's folder named after the old pin. Refresh moves node_modules aside, installs the new pin, then started the toolchain inspector next to the running CLI, in a folder that no longer existed.

Refresh now runs the installed release's toolchainChild.js, as it already does for generation, so the check gives the same result whichever CLI starts it. Builds and publishes still use the child beside the running CLI, and the inspector's argv and reply are unchanged.

Verified:

  • A new test installs a repo from an older pin, then refreshes it with the repo's installed CLI and with the workspace CLI. Before the fix it failed with the reported error. Now both exit 0 with changed.pin: true and identical output, including a Vite toolchain warning.
  • By hand against pnpm dev: change the packed release, restart, then refresh a repo pinned to the previous release. Both the repo's own pnpm patchy refresh and the workspace CLI run from source succeed and install the new pin.
  • pnpm check passes. The acceptance suites run in CI.

Closes #460

Made by Claude Opus 5.5 via Claude Code; reviewed by GPT 6.1 Sol via codex.

@github-actions github-actions Bot added area:cli Touches the cli area area:docs Touches the docs area size:m 100-500 changed lines labels Oct 2, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Codex review (GPT 6.1 Sol, read-only), final diff: no concrete defects found.

It checked the global, repo-installed and tsx-source CLIs, the unchanged inspect protocol, that nothing else loads from the old CLI folder after install, and that rollback stays inside the existing transaction. It found the README and comments accurate, and the regression test would fail without the fix. It verified the source (tsx) path by reading the code; that path was also run by hand against pnpm dev (see the description).

@allisonmahmood
allisonmahmood force-pushed the t3code/implement-issue-460 branch from 6242d38 to 745c311 Compare October 2, 2026 20:18
Refresh run from a repo's own CLI moved node_modules aside, installed the new
pin, then started the toolchain inspector beside the running CLI, in a pnpm
folder that no longer existed. Refresh now runs the installed release's
toolchainChild.js, as it already does for generation, so the check is the same
whichever CLI starts it. Builds and publishes keep the child beside the CLI.

Closes #460

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the t3code/implement-issue-460 branch from 745c311 to 2c5cc4b Compare October 2, 2026 20:38
@allisonmahmood
allisonmahmood merged commit 179e534 into main Oct 2, 2026
19 of 20 checks passed
@allisonmahmood
allisonmahmood deleted the t3code/implement-issue-460 branch October 2, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

fix(cli): pnpm patchy refresh fails across a release change

1 participant