Skip to content

fix(windows): suppress console popup on child_process calls#498

Open
csw-chen wants to merge 1 commit into
colbymchenry:mainfrom
csw-chen:fix-windows-popup
Open

fix(windows): suppress console popup on child_process calls#498
csw-chen wants to merge 1 commit into
colbymchenry:mainfrom
csw-chen:fix-windows-popup

Conversation

@csw-chen
Copy link
Copy Markdown

Add windowsHide: true to all spawnSync/execFileSync/execSync calls across extraction, installer, sync, and mcp modules to prevent console window popup on Windows when CodeGraph spawns git/npm subprocesses.

Affected subprocess calls:

  • WASM relaunch (spawnSync)
  • git status/rev-parse calls (execFileSync × 4 in extraction)
  • git worktree/hooks detection (execFileSync × 3 in sync)
  • npm install detection (execSync × 2 in installer)

Add windowsHide: true to all spawnSync/execFileSync/execSync calls
across extraction, installer, sync, and mcp modules to prevent
console window popup on Windows when CodeGraph spawns git/npm
subprocesses.

Affected subprocess calls:
- WASM relaunch (spawnSync)
- git status/rev-parse calls (execFileSync × 4 in extraction)
- git worktree/hooks detection (execFileSync × 3 in sync)
- npm install detection (execSync × 2 in installer)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@csw-chen
Copy link
Copy Markdown
Author

1

ZyphrZero added a commit to ZyphrZero/codegraph that referenced this pull request May 28, 2026
fix(windows): suppress console popup on child_process calls

Resolves overlap with PR colbymchenry#505 (which already added windowsHide to
the 7 git child-process call sites). Keeps PR colbymchenry#498's additional
coverage:
  - WASM relaunch in extraction/wasm-runtime-flags.ts
  - npm install -g in installer/index.ts (preserving the fork's
    @changqiu/codegraph package name)
  - Antigravity codegraph-path resolution
  - mcp/engine.ts comment cleanup

Verified:
  - tsc --noEmit clean
  - sync, git-hooks, installer-targets, wasm-runtime-flags tests:
    160 passed, 0 failed
ZyphrZero added a commit to ZyphrZero/codegraph that referenced this pull request May 28, 2026
Includes Windows console-popup fixes from PR colbymchenry#498 on top of the
existing 0.9.6 fork (PR colbymchenry#415 drive-root path, PR colbymchenry#505 git
windowsHide). Republished under @changqiu/codegraph.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant