@@ -1474,46 +1474,41 @@ describe("deriveTimelineEntries", () => {
14741474 } ,
14751475 } ) ;
14761476 } ) ;
1477-
14781477} ) ;
14791478
14801479describe ( "deriveWorkLogEntries context window handling" , ( ) => {
14811480 it ( "excludes context window updates from the work log" , ( ) => {
1482- const entries = deriveWorkLogEntries (
1483- [
1484- makeActivity ( {
1485- id : "context-1" ,
1486- turnId : "turn-1" ,
1487- kind : "context-window.updated" ,
1488- summary : "Context window updated" ,
1489- tone : "info" ,
1490- } ) ,
1491- makeActivity ( {
1492- id : "tool-1" ,
1493- turnId : "turn-1" ,
1494- kind : "tool.completed" ,
1495- summary : "Ran command" ,
1496- tone : "tool" ,
1497- } ) ,
1498- ] ,
1499- ) ;
1481+ const entries = deriveWorkLogEntries ( [
1482+ makeActivity ( {
1483+ id : "context-1" ,
1484+ turnId : "turn-1" ,
1485+ kind : "context-window.updated" ,
1486+ summary : "Context window updated" ,
1487+ tone : "info" ,
1488+ } ) ,
1489+ makeActivity ( {
1490+ id : "tool-1" ,
1491+ turnId : "turn-1" ,
1492+ kind : "tool.completed" ,
1493+ summary : "Ran command" ,
1494+ tone : "tool" ,
1495+ } ) ,
1496+ ] ) ;
15001497
15011498 expect ( entries ) . toHaveLength ( 1 ) ;
15021499 expect ( entries [ 0 ] ?. label ) . toBe ( "Ran command" ) ;
15031500 } ) ;
15041501
15051502 it ( "keeps context compaction activities as normal work log entries" , ( ) => {
1506- const entries = deriveWorkLogEntries (
1507- [
1508- makeActivity ( {
1509- id : "compaction-1" ,
1510- turnId : "turn-1" ,
1511- kind : "context-compaction" ,
1512- summary : "Context compacted" ,
1513- tone : "info" ,
1514- } ) ,
1515- ] ,
1516- ) ;
1503+ const entries = deriveWorkLogEntries ( [
1504+ makeActivity ( {
1505+ id : "compaction-1" ,
1506+ turnId : "turn-1" ,
1507+ kind : "context-compaction" ,
1508+ summary : "Context compacted" ,
1509+ tone : "info" ,
1510+ } ) ,
1511+ ] ) ;
15171512
15181513 expect ( entries ) . toHaveLength ( 1 ) ;
15191514 expect ( entries [ 0 ] ?. label ) . toBe ( "Context compacted" ) ;
0 commit comments