@@ -73,6 +73,12 @@ describe("matrix qa config", () => {
7373 requireMention : true ,
7474 } ) ;
7575 expect ( sut ?. replyToMode ) . toBe ( "off" ) ;
76+ expect ( sut ?. streaming ) . toEqual ( {
77+ block : { enabled : false } ,
78+ chunkMode : "length" ,
79+ mode : "off" ,
80+ preview : { toolProgress : true } ,
81+ } ) ;
7682 expect ( sut ?. threadReplies ) . toBe ( "inbound" ) ;
7783 expect ( next . messages ?. groupChat ?. visibleReplies ) . toBe ( "automatic" ) ;
7884 } ) ;
@@ -233,7 +239,12 @@ describe("matrix qa config", () => {
233239
234240 expect ( reset . channels ?. matrix ?. accounts ?. sut ?. autoJoin ) . toBeUndefined ( ) ;
235241 expect ( reset . channels ?. matrix ?. accounts ?. sut ?. autoJoinAllowlist ) . toBeUndefined ( ) ;
236- expect ( reset . channels ?. matrix ?. accounts ?. sut ?. streaming ) . toBeUndefined ( ) ;
242+ expect ( reset . channels ?. matrix ?. accounts ?. sut ?. streaming ) . toEqual ( {
243+ block : { enabled : false } ,
244+ chunkMode : "length" ,
245+ mode : "off" ,
246+ preview : { toolProgress : true } ,
247+ } ) ;
237248 } ) ;
238249
239250 it ( "normalizes Matrix QA overrides into the written account config" , ( ) => {
@@ -264,6 +275,7 @@ describe("matrix qa config", () => {
264275 expect ( account ?. groupPolicy ) . toBe ( "open" ) ;
265276 expect ( account ?. streaming ) . toEqual ( {
266277 block : { enabled : true } ,
278+ chunkMode : "length" ,
267279 mode : "partial" ,
268280 preview : { toolProgress : true } ,
269281 } ) ;
@@ -298,10 +310,14 @@ describe("matrix qa config", () => {
298310 } ) ;
299311
300312 expect ( optedOut . channels ?. matrix ?. accounts ?. sut ?. streaming ) . toEqual ( {
313+ block : { enabled : false } ,
314+ chunkMode : "length" ,
301315 mode : "quiet" ,
302316 preview : { toolProgress : false } ,
303317 } ) ;
304318 expect ( reset . channels ?. matrix ?. accounts ?. sut ?. streaming ) . toEqual ( {
319+ block : { enabled : false } ,
320+ chunkMode : "length" ,
305321 mode : "quiet" ,
306322 preview : { toolProgress : true } ,
307323 } ) ;
0 commit comments