File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
packages/opencode/src/session Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -549,6 +549,15 @@ export namespace MessageV2 {
549549 } ,
550550 ]
551551 }
552+ if ( part . type === "reasoning" ) {
553+ return [
554+ {
555+ type : "reasoning" ,
556+ text : part . text ,
557+ providerMetadata : part . metadata ,
558+ } ,
559+ ]
560+ }
552561
553562 return [ ]
554563 } ) ,
Original file line number Diff line number Diff line change @@ -853,6 +853,7 @@ export namespace SessionPrompt {
853853 if ( value . id in reasoningMap ) {
854854 const part = reasoningMap [ value . id ]
855855 part . text += value . text
856+ if ( value . providerMetadata ) part . metadata = value . providerMetadata
856857 if ( part . text ) await Session . updatePart ( part )
857858 }
858859 break
@@ -861,7 +862,7 @@ export namespace SessionPrompt {
861862 if ( value . id in reasoningMap ) {
862863 const part = reasoningMap [ value . id ]
863864 part . text = part . text . trimEnd ( )
864- part . metadata = value . providerMetadata
865+
865866 part . time = {
866867 ...part . time ,
867868 end : Date . now ( ) ,
You can’t perform that action at this time.
0 commit comments