fix: add windowsHide to child_process calls to prevent terminal popup on Windows (#637)

- copilot-models.ts: add windowsHide to `gh auth token` call
- file-provider.ts: add shared execOpts with windowsHide for all
  docker/ssh/singularity calls

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-05-11 23:00:09 +08:00
committed by GitHub
parent e6a0f5b6f2
commit f78fb2da90
2 changed files with 2 additions and 1 deletions
@@ -8,6 +8,7 @@ import { config } from '../../config'
import { getActiveProfileDir, getActiveEnvPath } from './hermes-profile'
const execFileAsync = promisify(execFile)
const execOpts = { windowsHide: true }
// Max download file size (default 200MB)
const MAX_DOWNLOAD_SIZE = parseInt(process.env.MAX_DOWNLOAD_SIZE || '', 10) || 200 * 1024 * 1024