cli: trim both ends of reasoning text

pull/11814/head
Dax Raad 2026-02-02 12:59:06 -05:00
parent 81ec3e0723
commit 714ea57952
1 changed files with 1 additions and 1 deletions

View File

@ -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) {