fix: harden discord ack auth and gate fallout (#60081) (thanks @FunJim)

This commit is contained in:
Peter Steinberger
2026-04-04 00:37:46 +09:00
parent c1741abc3c
commit bf6bd7432a
6 changed files with 44 additions and 12 deletions

View File

@@ -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",

View File

@@ -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",
]),
);
});