fix: resolve registry and feishu ci regressions

This commit is contained in:
Junebugg1214 2026-03-14 18:52:50 -04:00
parent f2fd2af2d6
commit d01b022a33
4 changed files with 11 additions and 3 deletions

View File

@ -595,6 +595,8 @@ describe("Feishu inbound debounce regressions", () => {
await Promise.resolve();
await Promise.resolve();
await vi.advanceTimersByTimeAsync(25);
await Promise.resolve();
await Promise.resolve();
const dispatched = expectSingleDispatchedEvent();
expect(dispatched.message.message_id).toBe("om_new");
@ -647,6 +649,8 @@ describe("Feishu inbound debounce regressions", () => {
await vi.advanceTimersByTimeAsync(25);
await enqueueDebouncedMessage(onMessage, event);
await vi.advanceTimersByTimeAsync(25);
await Promise.resolve();
await Promise.resolve();
expect(handleFeishuMessageMock).toHaveBeenCalledTimes(1);
});

View File

@ -3,12 +3,12 @@ import path from "node:path";
import type { OpenClawConfig, MemorySearchConfig } from "../config/config.js";
import { resolveStateDir } from "../config/paths.js";
import type { SecretInput } from "../config/types.secrets.js";
import { clampInt, clampNumber, resolveUserPath } from "../utils.js";
import { resolveAgentConfig } from "./agent-scope.js";
import {
normalizeMemoryMultimodalSettings,
type MemoryMultimodalSettings,
} from "../memory/multimodal.js";
import { clampInt, clampNumber, resolveUserPath } from "../utils.js";
import { resolveAgentConfig } from "./agent-scope.js";
export type ResolvedMemorySearchConfig = {
enabled: boolean;

View File

@ -211,6 +211,8 @@ function buildChatCommands(): ChatCommandDefinition[] {
acceptsArgs: true,
scope: "text",
category: "status",
}),
defineChatCommand({
key: "btw",
nativeName: "btw",
description: "Ask a side question without changing future session context.",

View File

@ -688,7 +688,9 @@ export abstract class MemoryManagerSyncOps {
);
const fileEntries = (
await Promise.all(
files.map(async (file) => buildFileEntry(file, this.workspaceDir, this.settings.multimodal)),
files.map(async (file) =>
buildFileEntry(file, this.workspaceDir, this.settings.multimodal),
),
)
).filter((entry): entry is MemoryFileEntry => entry !== null);
log.debug("memory sync: indexing memory files", {