Skip to content

Commit a074cf0

Browse files
committed
fix(outbound): normalize mirrored locations without type assertions
1 parent e518be9 commit a074cf0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/infra/outbound/source-reply-mirror.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
} from "@openclaw/normalization-core/string-coerce";
88
import { normalizeOptionalTrimmedStringList } from "@openclaw/normalization-core/string-normalization";
99
import type { ReplyPayload } from "../../auto-reply/types.js";
10+
import { normalizeOutboundLocation } from "../../channels/location.js";
1011
import { getChannelPlugin } from "../../channels/plugins/index.js";
1112
import type { ChannelId } from "../../channels/plugins/types.public.js";
1213
import { resolveChannelThreadAddressing } from "../../channels/thread-addressing.js";
@@ -508,7 +509,7 @@ export async function mirrorDeliveredSourceReplyToTranscript(
508509
presentation: params.actionParams.presentation as ReplyPayload["presentation"],
509510
interactive: params.actionParams.interactive as ReplyPayload["interactive"],
510511
channelData: params.actionParams.channelData as ReplyPayload["channelData"],
511-
location: params.actionParams.location as ReplyPayload["location"],
512+
location: normalizeOutboundLocation(params.actionParams.location),
512513
},
513514
]);
514515
const mirror = projectOutboundPayloadPlanForMirror(plan);

0 commit comments

Comments
 (0)