The open source coding agent.
TypeScript
tweak: rm processor .trim calls (#21958)
Aiden Cline33819932ec34
diff --git a/packages/opencode/src/session/processor.ts b/packages/opencode/src/session/processor.tsindex 99389de1e2f..aba155be70f 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].textctx.reasoningMap[value.id].time = { ...ctx.reasoningMap[value.id].time, end: Date.now() }if (value.providerMetadata) ctx.reasoningMap[value.id].metadata = value.providerMetadatayield* 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.textctx.currentText.text = (yield* plugin.trigger("experimental.text.complete",{