@@ -392,7 +392,10 @@ describe("gateway send mirroring", () => {
392392
393393 expect ( mocks . deliverOutboundPayloads ) . toHaveBeenCalledWith (
394394 expect . objectContaining ( {
395- agentId : "work" ,
395+ session : expect . objectContaining ( {
396+ agentId : "work" ,
397+ key : "agent:work:slack:channel:resolved" ,
398+ } ) ,
396399 mirror : expect . objectContaining ( {
397400 sessionKey : "agent:work:slack:channel:resolved" ,
398401 agentId : "work" ,
@@ -414,7 +417,10 @@ describe("gateway send mirroring", () => {
414417
415418 expect ( mocks . deliverOutboundPayloads ) . toHaveBeenCalledWith (
416419 expect . objectContaining ( {
417- agentId : "work" ,
420+ session : expect . objectContaining ( {
421+ agentId : "work" ,
422+ key : "agent:work:slack:channel:c1" ,
423+ } ) ,
418424 mirror : expect . objectContaining ( {
419425 sessionKey : "agent:work:slack:channel:c1" ,
420426 agentId : "work" ,
@@ -437,7 +443,10 @@ describe("gateway send mirroring", () => {
437443
438444 expect ( mocks . deliverOutboundPayloads ) . toHaveBeenCalledWith (
439445 expect . objectContaining ( {
440- agentId : "work" ,
446+ session : expect . objectContaining ( {
447+ agentId : "work" ,
448+ key : "agent:main:slack:channel:c1" ,
449+ } ) ,
441450 mirror : expect . objectContaining ( {
442451 sessionKey : "agent:main:slack:channel:c1" ,
443452 agentId : "work" ,
@@ -460,7 +469,10 @@ describe("gateway send mirroring", () => {
460469
461470 expect ( mocks . deliverOutboundPayloads ) . toHaveBeenCalledWith (
462471 expect . objectContaining ( {
463- agentId : "work" ,
472+ session : expect . objectContaining ( {
473+ agentId : "work" ,
474+ key : "agent:work:slack:channel:c1" ,
475+ } ) ,
464476 mirror : expect . objectContaining ( {
465477 sessionKey : "agent:work:slack:channel:c1" ,
466478 agentId : "work" ,
0 commit comments