File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -214,12 +214,24 @@ function createCellRuntimeFromSession(
214214 return {
215215 ...runtimeState ,
216216 outline : runtimeState . output ? parseOutline ( runtimeState . output ) : null ,
217- consoleOutputs : consoleOutputs . map ( ( consoleOutput ) => ( {
218- channel : consoleOutput . name === "stderr" ? "stderr" : "stdout" ,
219- data : consoleOutput . text ,
220- mimetype : "text/plain" ,
221- timestamp : DEFAULT_TIMESTAMP ,
222- } ) ) ,
217+ consoleOutputs : consoleOutputs . map ( ( consoleOutput ) => {
218+ // Handle StreamMediaOutput (type: "streamMedia")
219+ if ( consoleOutput . type === "streamMedia" ) {
220+ return {
221+ channel : "media" ,
222+ data : consoleOutput . data ,
223+ mimetype : consoleOutput . mimetype ,
224+ timestamp : DEFAULT_TIMESTAMP ,
225+ } ;
226+ }
227+ // Handle StreamOutput (type: "stream")
228+ return {
229+ channel : consoleOutput . name === "stderr" ? "stderr" : "stdout" ,
230+ data : consoleOutput . text ,
231+ mimetype : "text/plain" ,
232+ timestamp : DEFAULT_TIMESTAMP ,
233+ } ;
234+ } ) ,
223235 } ;
224236}
225237
You can’t perform that action at this time.
0 commit comments