gm-plugkit 2.0.1231 → 2.0.1232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1231",
3
+ "version": "2.0.1232",
4
4
  "description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -913,7 +913,17 @@ function getOrCreateBrowserSession(cwd, claudeSessionId, pw) {
913
913
  '--no-default-browser-check',
914
914
  '--disable-features=Translate',
915
915
  ];
916
- const child = spawn(chrome, chromeArgs, { detached: true, stdio: 'ignore' });
916
+ // Chrome itself is GUI but its remote-debugging port creates conhost
917
+ // when launched from a console-attached parent. CREATE_NO_WINDOW
918
+ // (0x08000000) | DETACHED_PROCESS (0x00000008) prevents the helper
919
+ // processes (sandbox, GPU, network service) from allocating consoles.
920
+ // Inherited by the entire chrome subprocess tree on Windows.
921
+ const child = spawn(chrome, chromeArgs, {
922
+ detached: true,
923
+ stdio: 'ignore',
924
+ windowsHide: true,
925
+ ...(process.platform === 'win32' ? { creationFlags: 0x08000000 | 0x00000008 } : {}),
926
+ });
917
927
  const chromePid = child.pid;
918
928
  child.unref();
919
929
  const deadline = Date.now() + 10000;