@@ -118,37 +118,37 @@ export class RunScrollbackStream {
118118 const renderable =
119119 body . type === "text"
120120 ? new TextRenderable ( surface . renderContext , {
121- id,
122- content : "" ,
123- width : "100%" ,
124- wrapMode : "word" ,
125- fg : style . fg ,
126- attributes : style . attrs ,
127- } )
128- : body . type === "code"
129- ? new CodeRenderable ( surface . renderContext , {
130121 id,
131122 content : "" ,
132- filetype : body . filetype ,
133- syntaxStyle : entrySyntax ( commit , this . theme ) ,
134123 width : "100%" ,
135124 wrapMode : "word" ,
136- drawUnstyledText : false ,
137- streaming : true ,
138- fg : entryColor ( commit , this . theme ) ,
139- treeSitterClient : this . treeSitterClient ,
125+ fg : style . fg ,
126+ attributes : style . attrs ,
140127 } )
128+ : body . type === "code"
129+ ? new CodeRenderable ( surface . renderContext , {
130+ id,
131+ content : "" ,
132+ filetype : body . filetype ,
133+ syntaxStyle : entrySyntax ( commit , this . theme ) ,
134+ width : "100%" ,
135+ wrapMode : "word" ,
136+ drawUnstyledText : false ,
137+ streaming : true ,
138+ fg : entryColor ( commit , this . theme ) ,
139+ treeSitterClient : this . treeSitterClient ,
140+ } )
141141 : new MarkdownRenderable ( surface . renderContext , {
142- id,
143- content : "" ,
144- syntaxStyle : entrySyntax ( commit , this . theme ) ,
145- width : "100%" ,
146- streaming : true ,
147- internalBlockMode : "top-level" ,
148- tableOptions : { widthMode : "content" } ,
149- fg : entryColor ( commit , this . theme ) ,
150- treeSitterClient : this . treeSitterClient ,
151- } )
142+ id,
143+ content : "" ,
144+ syntaxStyle : entrySyntax ( commit , this . theme ) ,
145+ width : "100%" ,
146+ streaming : true ,
147+ internalBlockMode : "top-level" ,
148+ tableOptions : { widthMode : "content" } ,
149+ fg : entryColor ( commit , this . theme ) ,
150+ treeSitterClient : this . treeSitterClient ,
151+ } )
152152
153153 surface . root . add ( renderable )
154154
@@ -326,8 +326,7 @@ export class RunScrollbackStream {
326326
327327 if (
328328 body . type !== "structured" &&
329- ( entryCanStream ( commit , body ) ||
330- ( commit . kind === "tool" && commit . phase === "final" && body . type === "markdown" ) )
329+ ( entryCanStream ( commit , body ) || ( commit . kind === "tool" && commit . phase === "final" && body . type === "markdown" ) )
331330 ) {
332331 await this . writeStreaming ( commit , body )
333332 if ( entryDone ( commit ) ) {
0 commit comments