mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix(cli): hide Codex app-server console window on Windows (#574)
Spawn codex with windowsHide on win32 to avoid extra cmd windows and stray exit code 128 shells when using shell: true. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -84,7 +84,8 @@ export class CodexAppServerClient {
|
||||
return acc;
|
||||
}, {} as Record<string, string>),
|
||||
stdio: ['pipe', 'pipe', 'pipe'],
|
||||
shell: process.platform === 'win32'
|
||||
shell: process.platform === 'win32',
|
||||
windowsHide: process.platform === 'win32'
|
||||
});
|
||||
|
||||
this.process.stdout.setEncoding('utf8');
|
||||
|
||||
Reference in New Issue
Block a user