@@ -782,15 +782,20 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {
|
782 | 782 | }), |
783 | 783 | ); |
784 | 784 | |
785 | | -expect(updateLastRouteMock).toHaveBeenCalledWith( |
786 | | -expect.objectContaining({ |
787 | | -sessionKey: "agent:main:slack:direct:u1:thread:500.000", |
788 | | -deliveryContext: expect.objectContaining({ |
789 | | -threadId: "500.000", |
790 | | -to: "user:U1", |
791 | | -}), |
792 | | -}), |
793 | | -); |
| 785 | +expect(updateLastRouteMock).toHaveBeenCalledWith({ |
| 786 | +storePath: "/tmp/openclaw-store.json", |
| 787 | +sessionKey: "agent:main:slack:direct:u1:thread:500.000", |
| 788 | +deliveryContext: { |
| 789 | +channel: "slack", |
| 790 | +to: "user:U1", |
| 791 | +accountId: "default", |
| 792 | +threadId: "500.000", |
| 793 | +}, |
| 794 | +ctx: { |
| 795 | +MessageThreadId: "500.000", |
| 796 | +SessionKey: "agent:main:slack:direct:u1:thread:500.000", |
| 797 | +}, |
| 798 | +}); |
794 | 799 | }); |
795 | 800 | |
796 | 801 | it("keeps default main-scope DM last-route metadata on the main session", async () => { |
@@ -816,15 +821,20 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {
|
816 | 821 | }), |
817 | 822 | ); |
818 | 823 | |
819 | | -expect(updateLastRouteMock).toHaveBeenCalledWith( |
820 | | -expect.objectContaining({ |
821 | | -sessionKey: "agent:main:main", |
822 | | -deliveryContext: expect.objectContaining({ |
823 | | -threadId: "600.000", |
824 | | -to: "user:U1", |
825 | | -}), |
826 | | -}), |
827 | | -); |
| 824 | +expect(updateLastRouteMock).toHaveBeenCalledWith({ |
| 825 | +storePath: "/tmp/openclaw-store.json", |
| 826 | +sessionKey: "agent:main:main", |
| 827 | +deliveryContext: { |
| 828 | +channel: "slack", |
| 829 | +to: "user:U1", |
| 830 | +accountId: "default", |
| 831 | +threadId: "600.000", |
| 832 | +}, |
| 833 | +ctx: { |
| 834 | +MessageThreadId: "600.000", |
| 835 | +SessionKey: "agent:main:main:thread:600.000", |
| 836 | +}, |
| 837 | +}); |
828 | 838 | }); |
829 | 839 | |
830 | 840 | it("finalizes fast draft preview text without sending a duplicate normal reply", async () => { |
|