fix: stabilize exec approval approver routing

This commit is contained in:
Peter Steinberger
2026-03-30 06:24:18 +09:00
parent 216afe275e
commit 1ca01b738b
20 changed files with 278 additions and 47 deletions

View File

@@ -142,7 +142,7 @@ export type DiscordVoiceConfig = {
export type DiscordExecApprovalConfig = {
/** Enable exec approval forwarding to Discord DMs. Default: false. */
enabled?: boolean;
/** Discord user IDs to receive approval prompts. Required if enabled. */
/** Discord user IDs to receive approval prompts. Optional: falls back to owner IDs inferred from allowFrom/defaultTo when possible. */
approvers?: string[];
/** Only forward approvals for these agent IDs. Omit = all agents. */
agentFilter?: string[];
@@ -152,7 +152,7 @@ export type DiscordExecApprovalConfig = {
cleanupAfterResolve?: boolean;
/** Where to send approval prompts. "dm" sends to approver DMs (default), "channel" sends to the
* originating Discord channel, "both" sends to both. When target is "channel" or "both", buttons
* are only usable by configured approvers; other users receive an ephemeral denial. */
* are only usable by resolved approvers; other users receive an ephemeral denial. */
target?: "dm" | "channel" | "both";
};

View File

@@ -61,7 +61,7 @@ export type TelegramExecApprovalTarget = "dm" | "channel" | "both";
export type TelegramExecApprovalConfig = {
/** Enable Telegram exec approvals for this account. Default: false. */
enabled?: boolean;
/** Telegram user IDs allowed to approve exec requests. Required if enabled. */
/** Telegram user IDs allowed to approve exec requests. Optional: falls back to numeric owner IDs inferred from allowFrom/defaultTo when possible. */
approvers?: Array<string | number>;
/** Only forward approvals for these agent IDs. Omit = all agents. */
agentFilter?: string[];