From 714ea579527965f86d4bf645f670944de465e472 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Mon, 2 Feb 2026 12:59:06 -0500 Subject: [PATCH] cli: trim both ends of reasoning text --- packages/opencode/src/cli/cmd/run.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/cli/cmd/run.ts b/packages/opencode/src/cli/cmd/run.ts index 0e0fd3e2a4..d2c97b7b45 100644 --- a/packages/opencode/src/cli/cmd/run.ts +++ b/packages/opencode/src/cli/cmd/run.ts @@ -416,7 +416,7 @@ export const RunCommand = cmd({ if (part.type === "reasoning" && part.time?.end) { if (emit("reasoning", { part })) continue - const text = part.text.trimEnd() + const text = part.text.trim() if (!text) continue const line = `Thinking: ${text}` if (process.stdout.isTTY) {