@@ -733,6 +733,7 @@ describe('preserveLocalPendingTurnMessages', () => {
733733 'does not duplicate the optimistic %s turn when the persisted turn carries its directive' ,
734734 kind => {
735735 const ref = `@${ kind } :X`
736+
736737 const previous = [
737738 msg ( '1-user' , 'user' , 'first' ) ,
738739 msg ( '2-assistant' , 'assistant' , 'first answer' ) ,
@@ -771,6 +772,7 @@ describe('preserveLocalPendingTurnMessages', () => {
771772
772773 it ( 'does not duplicate a turn with multiple CRLF directives and Unicode payloads' , ( ) => {
773774 const refs = [ '@file:`資料/über notes.md`' , '@url:`https://example.com/café?q=✓`' ]
775+
774776 const previous = [
775777 msg ( '1-user' , 'user' , 'first' ) ,
776778 msg ( '2-assistant' , 'assistant' , 'first answer' ) ,
@@ -1153,9 +1155,9 @@ describe('appendLiveSessionProjection', () => {
11531155 expect ( assistants [ 0 ] . parts . some ( part => part . type === 'reasoning' ) ) . toBe ( true )
11541156 expect ( assistants [ 0 ] . parts . some ( part => part . type === 'tool-call' ) ) . toBe ( true )
11551157 // Answer text stays the structured row's text, not the dump.
1156- expect ( assistants [ 0 ] . parts . filter ( part => part . type === 'text' ) . map ( part => ( 'text' in part ? part . text : '' ) ) ) . toEqual ( [
1157- 'partial'
1158- ] )
1158+ expect (
1159+ assistants [ 0 ] . parts . filter ( part => part . type === 'text' ) . map ( part => ( 'text' in part ? part . text : '' ) )
1160+ ) . toEqual ( [ 'partial' ] )
11591161 } )
11601162
11611163 it ( 'still projects inflight when only a completed historical tool reply has structure' , ( ) => {
0 commit comments