fix(heartbeat): repair prep regressions

This commit is contained in:
mbelinky
2026-04-13 18:11:54 +02:00
parent b30efe822a
commit 83b986a4c3
2 changed files with 4 additions and 1 deletions

View File

@@ -498,6 +498,8 @@ describe("Ghost reminder bug (issue #13317)", () => {
[sessionKey]: {
sessionId: "sid",
updatedAt: Date.now(),
lastChannel: "telegram",
lastTo: "-100155462274",
deliveryContext: {
channel: "telegram",
to: "-100155462274",
@@ -519,6 +521,7 @@ describe("Ghost reminder bug (issue #13317)", () => {
agentId: "main",
reason: "timer",
deps: {
getReplyFromConfig: replySpy,
telegram: sendTelegram,
},
});

View File

@@ -49,7 +49,7 @@ export type HeartbeatSenderContext = {
export type { OutboundTargetResolution } from "./targets-resolve-shared.js";
export { resolveSessionDeliveryTarget, type SessionDeliveryTarget } from "./targets-session.js";
import { resolveSessionDeliveryTarget } from "./targets-session.js";
import { resolveSessionDeliveryTarget, type SessionDeliveryTarget } from "./targets-session.js";
// Channel docking: prefer plugin.outbound.resolveTarget + allowFrom to normalize destinations.
export function resolveOutboundTarget(params: {