mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
fix formatting output going into tui
This commit is contained in:
parent
59b3268c64
commit
ed8d277e49
2 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
|
@ -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",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue