mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 11:20:22 +00:00
fix: stabilize exec approval approver routing
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
|
||||
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user