Skip to content

Chrome DevTools for coding agents

fix: hide Windows update check consoles (#2231)

Rayan Salhab6225ffbaf1ce
diff --git a/src/bin/check-latest-version.ts b/src/bin/check-latest-version.ts
index e3ef2c80..1fff66ec 100644
--- a/src/bin/check-latest-version.ts
+++ b/src/bin/check-latest-version.ts
@@ -21,6 +21,7 @@ function getRegistry(): string {
encoding: 'utf8',
stdio: ['ignore', 'pipe', 'ignore'],
timeout: 5000,
+ windowsHide: true,
})
.trim()
.replace(/\/$/, '');
diff --git a/src/utils/check-for-updates.ts b/src/utils/check-for-updates.ts
index c1e59e0b..f88ec0c7 100644
--- a/src/utils/check-for-updates.ts
+++ b/src/utils/check-for-updates.ts
@@ -88,6 +88,7 @@ export async function checkForUpdates(message: string) {
{
detached: true,
stdio: 'ignore',
+ windowsHide: true,
},
);
child.unref();
diff --git a/tests/check-for-updates.test.ts b/tests/check-for-updates.test.ts
index 13a8fc03..2dec14fe 100644
--- a/tests/check-for-updates.test.ts
+++ b/tests/check-for-updates.test.ts
@@ -139,6 +139,7 @@ describe('checkForUpdates', () => {
);
assert.ok(spawnStub.firstCall.args[1][1]?.includes('latest.json'));
assert.strictEqual(spawnStub.firstCall.args[2]?.detached, true);
+ assert.strictEqual(spawnStub.firstCall.args[2]?.windowsHide, true);
assert.ok(unrefSpy.calledOnce);
});
@@ -163,6 +164,7 @@ describe('checkForUpdates', () => {
);
assert.ok(spawnStub.firstCall.args[1][1]?.includes('latest.json'));
assert.strictEqual(spawnStub.firstCall.args[2]?.detached, true);
+ assert.strictEqual(spawnStub.firstCall.args[2]?.windowsHide, true);
assert.ok(unrefSpy.calledOnce);
});
});