File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/opencode/src/session Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments