The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(approval-card): add label override props for approval buttons
Steven Enamakelbd0dc18bc3f8
diff --git a/app/src/features/conversations/aui/ApprovalCardAdapter.tsx b/app/src/features/conversations/aui/ApprovalCardAdapter.tsxindex 390951b9c4..8458028886 100644--- a/app/src/features/conversations/aui/ApprovalCardAdapter.tsx+++ b/app/src/features/conversations/aui/ApprovalCardAdapter.tsx@@ -71,6 +71,10 @@ export interface ApprovalCardAdapterProps<D = ApprovalDecision> {denyDecision?: D;/** Decision to send for "Allow once". Defaults to the approval-gate `'approve_once'`. */allowOnceDecision?: D;+ /** Button label overrides, for a call site whose vocabulary differs from the approval-gate's ("Reject" vs. "Deny", "Approve & run" vs. "Approve"). Default to the approval-gate copy. */+ denyLabel?: string;+ alwaysAllowLabel?: string;+ allowOnceLabel?: string;onDecide: (decision: D) => Promise<void>;/** Prefix for each button's `data-analytics-id` / e2e `data-testid`. */analyticsPrefix: string;@@ -92,6 +96,9 @@ export function ApprovalCardAdapter<D = ApprovalDecision>({onAlwaysAllowClick,denyDecision = 'deny' as D,allowOnceDecision = 'approve_once' as D,+ denyLabel,+ alwaysAllowLabel,+ allowOnceLabel,onDecide,analyticsPrefix,testId,