mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 21:16:06 +00:00
cli: trim both ends of reasoning text
This commit is contained in:
parent
81ec3e0723
commit
714ea57952
1 changed files with 1 additions and 1 deletions
|
|
@ -416,7 +416,7 @@ export const RunCommand = cmd({
|
|||
|
||||
if (part.type === "reasoning" && part.time?.end) {
|
||||
if (emit("reasoning", { part })) continue
|
||||
const text = part.text.trimEnd()
|
||||
const text = part.text.trim()
|
||||
if (!text) continue
|
||||
const line = `Thinking: ${text}`
|
||||
if (process.stdout.isTTY) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue