mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 06:45:22 +00:00
cli: skip reasoning output with early continue
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user