Skip to content

Commit 735426c

Browse files
committed
feat(runtime): configure bounded CLI output capture
1 parent a2f2ea3 commit 735426c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/main/java/io/github/easy4j/opencode/OpenCodeCliConfig.java‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,14 @@ public OpenCodeCliConfig(OpenCodeDebugConfig debug) {
7676
* 本机 CLI 子进程最大并发数;小于等于 0 时不额外限制。
7777
*/
7878
private int maxConcurrentExecutions = 0;
79+
80+
/**
81+
* Maximum retained stdout bytes per execution. Values <= 0 mean unbounded.
82+
*/
83+
private int maxStdoutBytes = 4 * 1024 * 1024;
84+
85+
/**
86+
* Maximum retained stderr bytes per execution. Values <= 0 mean unbounded.
87+
*/
88+
private int maxStderrBytes = 1024 * 1024;
7989
}

0 commit comments

Comments
 (0)