Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(aui): handle missing approval data in ApprovalCardAdapter

Steven Enamakelb9c6e90a43d7
diff --git a/app/src/features/conversations/aui/ApprovalCardAdapter.tsx b/app/src/features/conversations/aui/ApprovalCardAdapter.tsx
index a10d058e05..d2d4ef251e 100644
--- a/app/src/features/conversations/aui/ApprovalCardAdapter.tsx
+++ b/app/src/features/conversations/aui/ApprovalCardAdapter.tsx
@@ -73,9 +73,9 @@ export interface ApprovalCardAdapterProps<D = ApprovalDecision> {
*/
onAlwaysAllowClick?: () => void;
/** Decision to send for "Deny". Defaults to the approval-gate `'deny'`. */
- denyDecision?: D;
+ denyDecision?: NoInfer<D>;
/** Decision to send for "Allow once". Defaults to the approval-gate `'approve_once'`. */
- allowOnceDecision?: D;
+ allowOnceDecision?: NoInfer<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;