mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-21 22:21:33 +00:00
fix(ci): clear check-additional follow-up regressions (#63934)
* fix(ci): route messaging temp files through openclaw tmp dir * fix(ci): clear qa-lab follow-up guardrails * fix(ci): own-check ACP fallback resolvers * fix(ci): preserve memory-core write error causes * fix(ci): narrow qa-channel boundary alias * fix(test): type memory-core dreaming api stubs
This commit is contained in:
@@ -262,6 +262,13 @@ function normalizeTelegramConversationIdFallback(params: {
|
||||
return /^-?\d+$/.test(normalized) ? normalized : undefined;
|
||||
}
|
||||
|
||||
const threadBindingFallbackConversationResolvers = {
|
||||
line: (params: { to?: string; groupId?: string }) =>
|
||||
normalizeLineConversationIdFallback(params.groupId ?? params.to),
|
||||
telegram: (params: { to?: string; threadId?: string | number; groupId?: string }) =>
|
||||
normalizeTelegramConversationIdFallback(params),
|
||||
} as const;
|
||||
|
||||
function resolveSpawnMode(params: {
|
||||
requestedMode?: SpawnAcpMode;
|
||||
threadRequested: boolean;
|
||||
@@ -509,17 +516,14 @@ function resolveConversationIdForThreadBinding(params: {
|
||||
if (normalizeOptionalString(pluginResolvedConversationId)) {
|
||||
return normalizeOptionalString(pluginResolvedConversationId);
|
||||
}
|
||||
if (channelKey === "line") {
|
||||
const lineConversationId = normalizeLineConversationIdFallback(params.groupId ?? params.to);
|
||||
if (lineConversationId) {
|
||||
return lineConversationId;
|
||||
}
|
||||
}
|
||||
if (channelKey === "telegram") {
|
||||
const telegramConversationId = normalizeTelegramConversationIdFallback(params);
|
||||
if (telegramConversationId) {
|
||||
return telegramConversationId;
|
||||
}
|
||||
const compatibilityConversationId =
|
||||
channelKey && Object.hasOwn(threadBindingFallbackConversationResolvers, channelKey)
|
||||
? threadBindingFallbackConversationResolvers[
|
||||
channelKey as keyof typeof threadBindingFallbackConversationResolvers
|
||||
](params)
|
||||
: undefined;
|
||||
if (compatibilityConversationId) {
|
||||
return compatibilityConversationId;
|
||||
}
|
||||
const genericConversationId = resolveConversationIdFromTargets({
|
||||
threadId: params.threadId,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import fs from "node:fs";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import { afterAll, beforeAll, beforeEach, vi } from "vitest";
|
||||
import { resolvePreferredOpenClawTmpDir } from "../tmp-openclaw-dir.js";
|
||||
import type { DeliverFn, RecoveryLogger } from "./delivery-queue.js";
|
||||
|
||||
export function installDeliveryQueueTmpDirHooks(): { readonly tmpDir: () => string } {
|
||||
@@ -10,7 +10,7 @@ export function installDeliveryQueueTmpDirHooks(): { readonly tmpDir: () => stri
|
||||
let fixtureCount = 0;
|
||||
|
||||
beforeAll(() => {
|
||||
fixtureRoot = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-dq-suite-"));
|
||||
fixtureRoot = fs.mkdtempSync(path.join(resolvePreferredOpenClawTmpDir(), "openclaw-dq-suite-"));
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user