@@ -452,7 +452,7 @@ describe("deriveMessagesTimelineRows", () => {
452452 expect ( assistantRow ?. assistantTurnDiffSummary ) . toBe ( assistantTurnDiffSummary ) ;
453453 } ) ;
454454
455- it ( "keeps the first and terminal assistant messages visible around settled work" , ( ) => {
455+ it ( "folds the first assistant message and settled work before the terminal response " , ( ) => {
456456 const timelineEntries = [
457457 {
458458 id : "user-entry" ,
@@ -528,7 +528,6 @@ describe("deriveMessagesTimelineRows", () => {
528528 expect ( foldRow ?. label ) . toBe ( "Worked for 22s" ) ;
529529 expect ( collapsedRows . map ( ( row ) => row . id ) ) . toEqual ( [
530530 "user-entry" ,
531- "assistant-first-entry" ,
532531 "turn-fold:turn-1" ,
533532 "assistant-final-entry" ,
534533 ] ) ;
@@ -544,8 +543,8 @@ describe("deriveMessagesTimelineRows", () => {
544543
545544 expect ( expandedRows . map ( ( row ) => row . id ) ) . toEqual ( [
546545 "user-entry" ,
547- "assistant-first-entry" ,
548546 "turn-fold:turn-1" ,
547+ "assistant-first-entry" ,
549548 "work-toggle:work-entry-1" ,
550549 "assistant-final-entry" ,
551550 ] ) ;
@@ -554,7 +553,7 @@ describe("deriveMessagesTimelineRows", () => {
554553 ) . toBeDefined ( ) ;
555554 } ) ;
556555
557- it ( "folds assistant messages between the first and terminal messages " , ( ) => {
556+ it ( "folds all assistant messages before the terminal message " , ( ) => {
558557 const timelineEntries = [
559558 {
560559 id : "assistant-first-entry" ,
@@ -608,11 +607,7 @@ describe("deriveMessagesTimelineRows", () => {
608607 revertTurnCountByUserMessageId : new Map ( ) ,
609608 } ) ;
610609
611- expect ( rows . map ( ( row ) => row . id ) ) . toEqual ( [
612- "assistant-first-entry" ,
613- "turn-fold:turn-1" ,
614- "assistant-final-entry" ,
615- ] ) ;
610+ expect ( rows . map ( ( row ) => row . id ) ) . toEqual ( [ "turn-fold:turn-1" , "assistant-final-entry" ] ) ;
616611 } ) ;
617612
618613 it ( "derives a sane duration for a steer-superseded turn with one instant commentary message" , ( ) => {
0 commit comments