cli: skip reasoning output with early continue

pull/11814/head
Dax Raad 2026-02-02 12:52:42 -05:00
parent 1c07b14545
commit 54eb8ff6c7
1 changed files with 1 additions and 11 deletions

View File

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