fix: dedupe inbound messages across providers

This commit is contained in:
Peter Steinberger
2026-01-11 00:12:17 +01:00
parent bd2002010c
commit 7c76561569
18 changed files with 353 additions and 53 deletions

View File

@@ -1,5 +1,6 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import { resetInboundDedupe } from "../auto-reply/reply/inbound-dedupe.js";
import type { ClawdbotConfig } from "../config/config.js";
import {
peekSystemEvents,
@@ -61,6 +62,7 @@ vi.mock("./daemon.js", () => ({
const flush = () => new Promise((resolve) => setTimeout(resolve, 0));
beforeEach(() => {
resetInboundDedupe();
config = {
messages: { responsePrefix: "PFX" },
signal: { autoStart: false, dmPolicy: "open", allowFrom: ["*"] },