Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cli/config-manager/bun-install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export async function runBunInstallWithDetails(): Promise<BunInstallResult> {
try {
const proc = spawnWithWindowsHide(["bun", "install"], {
cwd: cacheDir,
stdout: "inherit",
stderr: "inherit",
stdout: "pipe",
Copy link

@cubic-dev-ai cubic-dev-ai bot Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Custom agent: Opencode Compatibility

Use "ignore" instead of "pipe" to safely suppress output and prevent the child process from deadlocking when the OS pipe buffer fills up.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/cli/config-manager/bun-install.ts, line 34:

<comment>Use `"ignore"` instead of `"pipe"` to safely suppress output and prevent the child process from deadlocking when the OS pipe buffer fills up.</comment>

<file context>
@@ -31,8 +31,8 @@ export async function runBunInstallWithDetails(): Promise<BunInstallResult> {
       cwd: cacheDir,
-      stdout: "inherit",
-      stderr: "inherit",
+      stdout: "pipe",
+      stderr: "pipe",
     })
</file context>
Fix with Cubic

stderr: "pipe",
})

let timeoutId: ReturnType<typeof setTimeout>
Expand Down
4 changes: 2 additions & 2 deletions src/cli/run/on-complete-hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export async function executeOnCompleteHook(options: {
DURATION_MS: String(durationMs),
MESSAGE_COUNT: String(messageCount),
},
stdout: "inherit",
stderr: "inherit",
stdout: "pipe",
stderr: "pipe",
Comment on lines +29 to +30
Copy link

@cubic-dev-ai cubic-dev-ai bot Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Custom agent: Opencode Compatibility

Use "ignore" instead of "pipe" when discarding subprocess output. Leaving the streams as "pipe" without draining them will cause the subprocess to permanently hang if its output exceeds the OS pipe buffer size.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/cli/run/on-complete-hook.ts, line 29:

<comment>Use `"ignore"` instead of `"pipe"` when discarding subprocess output. Leaving the streams as `"pipe"` without draining them will cause the subprocess to permanently hang if its output exceeds the OS pipe buffer size.</comment>

<file context>
@@ -26,8 +26,8 @@ export async function executeOnCompleteHook(options: {
       },
-      stdout: "inherit",
-      stderr: "inherit",
+      stdout: "pipe",
+      stderr: "pipe",
     })
</file context>
Suggested change
stdout: "pipe",
stderr: "pipe",
stdout: "ignore",
stderr: "ignore",
Fix with Cubic

})

const hookExitCode = await proc.exited
Expand Down
Loading