Skip to content

[v3-4-test] Reinstall stale provider UI dependencies when compiling assets (#75607) - #77227

Merged
vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-8894f5b-v3-4-test
Nov 25, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-8894f5b-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

When a provider UI's node_modules was installed with a different pnpm
store or layout, pnpm must purge and reinstall it, and it asks for
confirmation first. compile_provider_assets.py runs pnpm install with
captured output, so nobody can answer. pnpm 9, which common.ai pins,
then exits 0 without installing anything if stdin is closed, or waits
forever if stdin is open. The build then fails on any dependency added
since the last install, for example react-icons after #74334. pnpm 10,
which fab and edge3 pin, fails with
ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY.

#76498 asks developers to delete the store-dir setting that older prek
hooks wrote to the global pnpm config. Each provider UI installed with
that setting then hits this on its next build.

The other prek hooks that install UI dependencies on the host already
skip this confirmation.
(cherry picked from commit 8894f5b)

Co-authored-by: Andrew Chang [email protected]

@vatsrahul1001
vatsrahul1001 enabled auto-merge (squash) November 25, 2026 12:42
…ssets (#75607)

When a provider UI's node_modules was installed with a different pnpm
store or layout, pnpm must purge and reinstall it, and it asks for
confirmation first. compile_provider_assets.py runs pnpm install with
captured output, so nobody can answer. pnpm 9, which common.ai pins,
then exits 0 without installing anything if stdin is closed, or waits
forever if stdin is open. The build then fails on any dependency added
since the last install, for example react-icons after #74334. pnpm 10,
which fab and edge3 pin, fails with
ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY.

#76498 asks developers to delete the store-dir setting that older prek
hooks wrote to the global pnpm config. Each provider UI installed with
that setting then hits this on its next build.

The other prek hooks that install UI dependencies on the host already
skip this confirmation.
(cherry picked from commit 8894f5b)

Co-authored-by: Andrew Chang <[email protected]>
@vatsrahul1001
vatsrahul1001 force-pushed the backport-8894f5b-v3-4-test branch from f2574bc to cc8bfee Compare November 25, 2026 12:42
@vatsrahul1001
vatsrahul1001 merged commit 7f9eba8 into v3-4-test Nov 25, 2026
107 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-8894f5b-v3-4-test branch November 25, 2026 12:53
vatsrahul1001 pushed a commit that referenced this pull request Nov 27, 2026
…ssets (#75607) (#77227)

When a provider UI's node_modules was installed with a different pnpm
store or layout, pnpm must purge and reinstall it, and it asks for
confirmation first. compile_provider_assets.py runs pnpm install with
captured output, so nobody can answer. pnpm 9, which common.ai pins,
then exits 0 without installing anything if stdin is closed, or waits
forever if stdin is open. The build then fails on any dependency added
since the last install, for example react-icons after #74334. pnpm 10,
which fab and edge3 pin, fails with
ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY.

#76498 asks developers to delete the store-dir setting that older prek
hooks wrote to the global pnpm config. Each provider UI installed with
that setting then hits this on its next build.

The other prek hooks that install UI dependencies on the host already
skip this confirmation.
(cherry picked from commit 8894f5b)

Co-authored-by: Andrew Chang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants