diff options
| author | Dax Raad <[email protected]> | 2025-06-27 07:29:41 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-06-27 19:10:41 -0400 |
| commit | 9f07f89384907e57c42317b63d8316701bba8f25 (patch) | |
| tree | 2860004d1d23ec84a1e1a5e7c7cbe1273e61133a | |
| parent | d840d43e8f424fa399afec98a87c4f8433feb9e5 (diff) | |
| download | opencode-9f07f89384907e57c42317b63d8316701bba8f25.tar.gz opencode-9f07f89384907e57c42317b63d8316701bba8f25.zip | |
fix formatting output going into tui
| -rw-r--r-- | packages/opencode/src/format/index.ts | 2 | ||||
| -rw-r--r-- | packages/opencode/src/session/index.ts | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/packages/opencode/src/format/index.ts b/packages/opencode/src/format/index.ts index 7dfcb3e0c..9142750b0 100644 --- a/packages/opencode/src/format/index.ts +++ b/packages/opencode/src/format/index.ts @@ -54,6 +54,8 @@ export namespace Format { cmd: item.command.map((x) => x.replace("$FILE", file)), cwd: App.info().path.cwd, env: item.environment, + stdout: "ignore", + stderr: "ignore", }) const exit = await proc.exited if (exit !== 0) diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts index 9abcb6985..0591bb56a 100644 --- a/packages/opencode/src/session/index.ts +++ b/packages/opencode/src/session/index.ts @@ -537,6 +537,7 @@ export namespace Session { // return step // }, toolCallStreaming: true, + maxTokens: model.info.limit.output || undefined, abortSignal: abort.signal, maxSteps: 1000, providerOptions: model.info.options, @@ -860,6 +861,8 @@ export namespace Session { cmd: item.command, cwd: App.info().path.cwd, env: item.environment, + stdout: "ignore", + stderr: "ignore", }) } } |
