fix(bun-install): default outputMode to "pipe" to prevent TUI stdout leak
runBunInstallWithDetails() defaulted to outputMode:"inherit", causing bun install stdout/stderr to leak into the TUI when callers omitted the option. Changed default to "pipe" so output is captured silently. Also fixed stale mock in background-update-check.test.ts: the test was mocking runBunInstall (unused) instead of runBunInstallWithDetails, and returning boolean instead of BunInstallResult.
This commit is contained in:
@@ -64,7 +64,7 @@ function logCapturedOutputOnFailure(outputMode: BunInstallOutputMode, output: Bu
|
||||
}
|
||||
|
||||
export async function runBunInstallWithDetails(options?: RunBunInstallOptions): Promise<BunInstallResult> {
|
||||
const outputMode = options?.outputMode ?? "inherit"
|
||||
const outputMode = options?.outputMode ?? "pipe"
|
||||
const cacheDir = getOpenCodeCacheDir()
|
||||
const packageJsonPath = `${cacheDir}/package.json`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user