diff options
| author | Aiden Cline <[email protected]> | 2026-04-10 19:47:08 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-10 19:47:08 -0500 |
| commit | 33819932ec347c365d3a6c0636264020cc39b5c1 (patch) | |
| tree | 9c8fba46e0d91a45a8d8a67303ad2681d5fd1f97 | |
| parent | 5d6fe014653dac2c0efb4497e4c8bbcd81936174 (diff) | |
| download | opencode-33819932ec347c365d3a6c0636264020cc39b5c1.tar.gz opencode-33819932ec347c365d3a6c0636264020cc39b5c1.zip | |
tweak: rm processor .trim calls (#21958)
| -rw-r--r-- | packages/opencode/src/session/processor.ts | 4 |
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", { |
