test(routing): add route-reply coverage

This commit is contained in:
Peter Steinberger
2026-01-07 05:07:53 +00:00
parent 3668388912
commit cb2a72f8a9
4 changed files with 122 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ export async function dispatchReplyFromConfig(params: {
// This handles cross-provider routing (e.g., message from Telegram being processed
// by a shared session that's currently on Slack) while preserving normal dispatcher
// flow when the provider handles its own messages.
//
// Debug: `pnpm test src/auto-reply/reply/dispatch-from-config.test.ts`
const originatingChannel = ctx.OriginatingChannel;
const originatingTo = ctx.OriginatingTo;
const currentSurface = (ctx.Surface ?? ctx.Provider)?.toLowerCase();