fix formatting output going into tui

This commit is contained in:
Dax Raad 2025-06-27 07:29:41 -04:00
parent 59b3268c64
commit ed8d277e49
2 changed files with 5 additions and 0 deletions

View file

@ -54,6 +54,8 @@ export namespace Format {
cmd: item.command.map((x) => x.replace("$FILE", file)), cmd: item.command.map((x) => x.replace("$FILE", file)),
cwd: App.info().path.cwd, cwd: App.info().path.cwd,
env: item.environment, env: item.environment,
stdout: "ignore",
stderr: "ignore",
}) })
const exit = await proc.exited const exit = await proc.exited
if (exit !== 0) if (exit !== 0)

View file

@ -537,6 +537,7 @@ export namespace Session {
// return step // return step
// }, // },
toolCallStreaming: true, toolCallStreaming: true,
maxTokens: model.info.limit.output || undefined,
abortSignal: abort.signal, abortSignal: abort.signal,
maxSteps: 1000, maxSteps: 1000,
providerOptions: model.info.options, providerOptions: model.info.options,
@ -860,6 +861,8 @@ export namespace Session {
cmd: item.command, cmd: item.command,
cwd: App.info().path.cwd, cwd: App.info().path.cwd,
env: item.environment, env: item.environment,
stdout: "ignore",
stderr: "ignore",
}) })
} }
} }