mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-10 16:51:13 +00:00
fix: harden discord ack auth and gate fallout (#60081) (thanks @FunJim)
This commit is contained in:
@@ -503,7 +503,7 @@ const telegramCommandTestPlugin: ChannelPlugin = {
|
||||
isTelegramExecApprovalAuthorizedSender({ cfg, accountId, senderId }) &&
|
||||
!getTelegramExecApprovalApprovers({ cfg, accountId }).includes(senderId?.trim() ?? "")
|
||||
) {
|
||||
return { kind: "ignore" } as const;
|
||||
return undefined;
|
||||
}
|
||||
return {
|
||||
kind: "reply",
|
||||
|
||||
@@ -1217,7 +1217,7 @@ describe("secrets runtime snapshot", () => {
|
||||
const ignoredInactiveWarnings = snapshot.warnings.filter(
|
||||
(warning) => warning.code === "SECRETS_REF_IGNORED_INACTIVE_SURFACE",
|
||||
);
|
||||
expect(ignoredInactiveWarnings).toHaveLength(10);
|
||||
expect(ignoredInactiveWarnings).toHaveLength(6);
|
||||
expect(snapshot.warnings.map((warning) => warning.path)).toEqual(
|
||||
expect.arrayContaining([
|
||||
"agents.defaults.memorySearch.remote.apiKey",
|
||||
@@ -1226,10 +1226,6 @@ describe("secrets runtime snapshot", () => {
|
||||
"channels.telegram.accounts.disabled.botToken",
|
||||
"plugins.entries.brave.config.webSearch.apiKey",
|
||||
"plugins.entries.google.config.webSearch.apiKey",
|
||||
"plugins.entries.xai.config.webSearch.apiKey",
|
||||
"plugins.entries.moonshot.config.webSearch.apiKey",
|
||||
"plugins.entries.perplexity.config.webSearch.apiKey",
|
||||
"plugins.entries.firecrawl.config.webSearch.apiKey",
|
||||
]),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user