From 6402c2ab194b4dca23610943534630cb050ad2c9 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Mon, 2 Feb 2026 13:07:42 -0500 Subject: [PATCH] feat: re-enable reasoning output with proper display handling --- packages/opencode/src/cli/cmd/run.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/cli/cmd/run.ts b/packages/opencode/src/cli/cmd/run.ts index ca234f748d..8f1174292d 100644 --- a/packages/opencode/src/cli/cmd/run.ts +++ b/packages/opencode/src/cli/cmd/run.ts @@ -417,7 +417,17 @@ export const RunCommand = cmd({ } if (part.type === "reasoning" && part.time?.end) { - continue + if (emit("reasoning", { part })) continue + const text = part.text.trim() + if (!text) continue + const line = `Thinking: ${text}` + if (process.stdout.isTTY) { + UI.empty() + UI.println(`\u001b[3m${line}\u001b[0m`) + UI.empty() + continue + } + process.stdout.write(line + EOL) } }