Discord: add exec approval cleanup option (#13205)

This commit is contained in:
Shadow
2026-02-10 00:39:42 -06:00
committed by GitHub
parent 656a467518
commit 8ff1618bfc
6 changed files with 35 additions and 5 deletions
+2
View File
@@ -95,6 +95,8 @@ export type DiscordExecApprovalConfig = {
agentFilter?: string[];
/** Only forward approvals matching these session key patterns (substring or regex). */
sessionFilter?: string[];
/** Delete approval DMs after approval, denial, or timeout. Default: false. */
cleanupAfterResolve?: boolean;
};
export type DiscordAgentComponentsConfig = {
+1
View File
@@ -308,6 +308,7 @@ export const DiscordAccountSchema = z
approvers: z.array(z.union([z.string(), z.number()])).optional(),
agentFilter: z.array(z.string()).optional(),
sessionFilter: z.array(z.string()).optional(),
cleanupAfterResolve: z.boolean().optional(),
})
.strict()
.optional(),