cli: re-enable reasoning output with italic formatting
parent
2b4fe1c320
commit
48db3981e4
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue