Skip to content

Commit ed8d277

Browse files
committed
fix formatting output going into tui
1 parent 59b3268 commit ed8d277

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

packages/opencode/src/format/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export namespace Format {
5454
cmd: item.command.map((x) => x.replace("$FILE", file)),
5555
cwd: App.info().path.cwd,
5656
env: item.environment,
57+
stdout: "ignore",
58+
stderr: "ignore",
5759
})
5860
const exit = await proc.exited
5961
if (exit !== 0)

packages/opencode/src/session/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ export namespace Session {
537537
// return step
538538
// },
539539
toolCallStreaming: true,
540+
maxTokens: model.info.limit.output || undefined,
540541
abortSignal: abort.signal,
541542
maxSteps: 1000,
542543
providerOptions: model.info.options,
@@ -860,6 +861,8 @@ export namespace Session {
860861
cmd: item.command,
861862
cwd: App.info().path.cwd,
862863
env: item.environment,
864+
stdout: "ignore",
865+
stderr: "ignore",
863866
})
864867
}
865868
}

0 commit comments

Comments
 (0)