Skip to content

Commit 3381993

Browse files
authored
tweak: rm processor .trim calls (#21958)
1 parent 5d6fe01 commit 3381993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/opencode/src/session/processor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export namespace SessionProcessor {
245245

246246
case "reasoning-end":
247247
if (!(value.id in ctx.reasoningMap)) return
248-
ctx.reasoningMap[value.id].text = ctx.reasoningMap[value.id].text.trimEnd()
248+
ctx.reasoningMap[value.id].text = ctx.reasoningMap[value.id].text
249249
ctx.reasoningMap[value.id].time = { ...ctx.reasoningMap[value.id].time, end: Date.now() }
250250
if (value.providerMetadata) ctx.reasoningMap[value.id].metadata = value.providerMetadata
251251
yield* session.updatePart(ctx.reasoningMap[value.id])
@@ -425,7 +425,7 @@ export namespace SessionProcessor {
425425

426426
case "text-end":
427427
if (!ctx.currentText) return
428-
ctx.currentText.text = ctx.currentText.text.trimEnd()
428+
ctx.currentText.text = ctx.currentText.text
429429
ctx.currentText.text = (yield* plugin.trigger(
430430
"experimental.text.complete",
431431
{

0 commit comments

Comments
 (0)