From d0f32046192b2ec53e2648d68665b89f68673e73 Mon Sep 17 00:00:00 2001 From: Filip <34747899+neriousy@users.noreply.github.com> Date: Fri, 16 Oct 2026 00:45:40 +0200 Subject: [PATCH] fix(util): hide plugin Git console windows on Windows (#55475) --- packages/util/src/npm.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/util/src/npm.ts b/packages/util/src/npm.ts index a2d121b68b8..db328a5d2c0 100644 --- a/packages/util/src/npm.ts +++ b/packages/util/src/npm.ts @@ -215,6 +215,7 @@ const layer = Layer.effect( ...(input.update ? { preferOnline: true, noGitRevCache: true } : {}), // Audit reports are unused here, but Arborist waits for them before completing an install. audit: false, + windowsHide: true, } const arborist = new Arborist({ ...options, @@ -372,7 +373,14 @@ const layer = Layer.effect( if (!installed) return yield* new InstallFailedError({ dir: root, cause: new Error(`Package is not installed: ${pkg}`) }) const { manifest, resolve } = yield* Effect.promise(() => import("pacote")) - const options = { ...(yield* NpmConfig.load(root)), preferOnline: true, noGitRevCache: true, ignoreScripts: true } + const options = { + ...(yield* NpmConfig.load(root)), + preferOnline: true, + noGitRevCache: true, + ignoreScripts: true, + // Pacote spawns Git directly rather than through AppProcess. + windowsHide: true, + } const available = yield* Effect.tryPromise({ try: async () => target.type === "git" ? gitRevision(await resolve(pkg, options)) : (await manifest(pkg, options)).version,