mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:08:26 +00:00
fix: stabilize CI type and test harness coverage
This commit is contained in:
@@ -530,6 +530,14 @@ function loadRequesterSessionEntry(requesterSessionKey: string) {
|
||||
return { cfg, entry, canonicalKey };
|
||||
}
|
||||
|
||||
function buildAnnounceQueueKey(sessionKey: string, origin?: DeliveryContext): string {
|
||||
const accountId = normalizeAccountId(origin?.accountId);
|
||||
if (!accountId) {
|
||||
return sessionKey;
|
||||
}
|
||||
return `${sessionKey}:acct:${accountId}`;
|
||||
}
|
||||
|
||||
async function maybeQueueSubagentAnnounce(params: {
|
||||
requesterSessionKey: string;
|
||||
announceId?: string;
|
||||
@@ -567,7 +575,7 @@ async function maybeQueueSubagentAnnounce(params: {
|
||||
if (isActive && (shouldFollowup || queueSettings.mode === "steer")) {
|
||||
const origin = resolveAnnounceOrigin(entry, params.requesterOrigin);
|
||||
enqueueAnnounce({
|
||||
key: canonicalKey,
|
||||
key: buildAnnounceQueueKey(canonicalKey, origin),
|
||||
item: {
|
||||
announceId: params.announceId,
|
||||
prompt: params.triggerMessage,
|
||||
|
||||
Reference in New Issue
Block a user