Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.
TypeScript ai-agentsanthropicclaude-codeclicode-graphcodexcontext-engineeringcursordeveloper-toolsgeminiknowledge-graphllmmcpmcp-serveropen-sourceopenaitree-sitter
fix(windows): hide detached background processes (#268)
Marcelo Caporale2a0a7b18fb06
diff --git a/src/claude/hooks.ts b/src/claude/hooks.tsindex 52854d32..bc6da71c 100644--- a/src/claude/hooks.ts+++ b/src/claude/hooks.ts@@ -296,7 +296,7 @@ function handleStop(input: any, dir: string): void {const stats = readStats(dir);if (stats?.dirty && acquireLock(dir)) {patchStats(dir, { syncing: true });- const child = spawn(process.execPath, [syncRun, dir], { detached: true, stdio: 'ignore' });+ const child = spawn(process.execPath, [syncRun, dir], { detached: true, stdio: 'ignore', windowsHide: true });child.unref();}}diff --git a/src/telemetry/flush.ts b/src/telemetry/flush.tsindex f3d124ae..257ba31f 100644--- a/src/telemetry/flush.ts+++ b/src/telemetry/flush.ts@@ -43,6 +43,7 @@ export function maybeFlushInBackground(home?: string, now = Date.now()): booleanconst child = spawn(process.execPath, [graftCliPath(), '_telemetry-flush'], {detached: true,stdio: 'ignore',+ windowsHide: true,});child.unref();return true;diff --git a/src/upkeep.ts b/src/upkeep.tsindex 443df952..7af0645f 100644--- a/src/upkeep.ts+++ b/src/upkeep.ts@@ -134,6 +134,7 @@ export function maybeRefreshInBackground(home?: string, now = Date.now()): booleconst child = spawn(process.execPath, [graftCliPath(), '_update-check'], {detached: true,stdio: 'ignore',+ windowsHide: true,});child.unref();return true;