summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-04-10 19:47:08 -0500
committerGitHub <[email protected]>2026-04-10 19:47:08 -0500
commit33819932ec347c365d3a6c0636264020cc39b5c1 (patch)
tree9c8fba46e0d91a45a8d8a67303ad2681d5fd1f97
parent5d6fe014653dac2c0efb4497e4c8bbcd81936174 (diff)
downloadopencode-33819932ec347c365d3a6c0636264020cc39b5c1.tar.gz
opencode-33819932ec347c365d3a6c0636264020cc39b5c1.zip
tweak: rm processor .trim calls (#21958)
-rw-r--r--packages/opencode/src/session/processor.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/src/session/processor.ts b/packages/opencode/src/session/processor.ts
index 99389de1e..aba155be7 100644
--- a/packages/opencode/src/session/processor.ts
+++ b/packages/opencode/src/session/processor.ts
@@ -245,7 +245,7 @@ export namespace SessionProcessor {
case "reasoning-end":
if (!(value.id in ctx.reasoningMap)) return
- ctx.reasoningMap[value.id].text = ctx.reasoningMap[value.id].text.trimEnd()
+ ctx.reasoningMap[value.id].text = ctx.reasoningMap[value.id].text
ctx.reasoningMap[value.id].time = { ...ctx.reasoningMap[value.id].time, end: Date.now() }
if (value.providerMetadata) ctx.reasoningMap[value.id].metadata = value.providerMetadata
yield* session.updatePart(ctx.reasoningMap[value.id])
@@ -425,7 +425,7 @@ export namespace SessionProcessor {
case "text-end":
if (!ctx.currentText) return
- ctx.currentText.text = ctx.currentText.text.trimEnd()
+ ctx.currentText.text = ctx.currentText.text
ctx.currentText.text = (yield* plugin.trigger(
"experimental.text.complete",
{