mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-15 11:11:09 +00:00
fix: repair ci type narrowing
This commit is contained in:
@@ -345,13 +345,15 @@ export async function tryDispatchAcpReply(params: {
|
||||
params.ctx.OriginatingChannel ?? params.ctx.Surface ?? params.ctx.Provider,
|
||||
);
|
||||
const explicitDispatchAccountId = normalizeOptionalString(params.ctx.AccountId);
|
||||
const dispatchChannels = params.cfg.channels as
|
||||
| Record<string, { defaultAccount?: unknown } | undefined>
|
||||
| undefined;
|
||||
const defaultDispatchAccount =
|
||||
normalizedDispatchChannel == null
|
||||
? undefined
|
||||
: dispatchChannels?.[normalizedDispatchChannel]?.defaultAccount;
|
||||
const effectiveDispatchAccountId =
|
||||
explicitDispatchAccountId ??
|
||||
normalizeOptionalString(
|
||||
(
|
||||
params.cfg.channels as Record<string, { defaultAccount?: unknown } | undefined> | undefined
|
||||
)?.[normalizedDispatchChannel]?.defaultAccount,
|
||||
);
|
||||
explicitDispatchAccountId ?? normalizeOptionalString(defaultDispatchAccount);
|
||||
const projector = createAcpReplyProjector({
|
||||
cfg: params.cfg,
|
||||
shouldSendToolSummaries: params.shouldSendToolSummaries,
|
||||
|
||||
Reference in New Issue
Block a user