cli: re-enable reasoning output with italic formatting

pull/11814/head
Dax Raad 2026-02-02 12:56:45 -05:00
parent 2b4fe1c320
commit 48db3981e4
1 changed files with 9 additions and 1 deletions

View File

@ -415,7 +415,15 @@ export const RunCommand = cmd({
}
if (part.type === "reasoning" && part.time?.end) {
continue
if (emit("reasoning", { part })) continue
const text = part.text.trimEnd()
if (!text) continue
const line = `Thinking: ${text}`
if (process.stdout.isTTY) {
UI.println(`\u001b[3m${line}\u001b[0m`)
continue
}
process.stdout.write(line + EOL)
}
}