mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-18 10:07:58 +00:00
cli: trim both ends of reasoning text
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user