Skip to content

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

fix(conversations): clarify onDecline prop contract

Steven Enamakel17ac8ca96131
diff --git a/app/src/features/conversations/aui/ElicitationAdapter.tsx b/app/src/features/conversations/aui/ElicitationAdapter.tsx
index 6fecad3720..34f0d419bf 100644
--- a/app/src/features/conversations/aui/ElicitationAdapter.tsx
+++ b/app/src/features/conversations/aui/ElicitationAdapter.tsx
@@ -35,7 +35,12 @@ export interface ElicitationAdapterProps {
pending: boolean;
/** Called with the free-text answer when the user submits it. */
onAnswer: (answer: string) => void;
- /** Called when the user declines to answer. Omit to hide the button. */
+ /**
+ * Called when the user declines to answer. The vendored element always
+ * renders the Decline button while `state === 'request'` (upstream has no
+ * per-button visibility slot); omitting this leaves the click a no-op
+ * rather than removing the button.
+ */
onDecline?: () => void;
testId?: string;
analyticsPrefix?: string;