Skip to content

Commit 552f588

Browse files
Sync public snapshot from freebuff-private
Source: CodebuffAI/freebuff-private@606d643c167b5559f83215166c4e4f73bbee9359
1 parent c93e328 commit 552f588

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

sdk/src/tools/run-terminal-command.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ export function runTerminalCommand({
216216
// On POSIX, give the command its own process group so that killing it
217217
// (timeout or user abort) also kills any grandchild processes.
218218
detached: !isWindows,
219+
// On Windows, give the child its own invisible console (CREATE_NO_WINDOW)
220+
// instead of attaching it to the TUI's console. Console-attached
221+
// descendants can open CONIN$/CONOUT$ directly (cmd, pause, choice,
222+
// PSReadLine, ...) even when stdio is piped, stealing the VT input that
223+
// ConPTY generates for the TUI's mouse/focus tracking and echoing it as
224+
// gibberish like `^[[I^[[<35;12;7M` painted over the UI.
225+
windowsHide: true,
219226
})
220227

221228
liveChildren.add(childProcess)

0 commit comments

Comments
 (0)