From 55cc847e8fe9fcfa4ce0503a44b00517bb2d9023 Mon Sep 17 00:00:00 2001 From: "A.K.M. Adib" Date: Fri, 6 Mar 2026 12:55:04 -0500 Subject: [PATCH] use question.unconstrainedHeight again --- packages/cli/src/ui/components/AskUserDialog.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/ui/components/AskUserDialog.tsx b/packages/cli/src/ui/components/AskUserDialog.tsx index 56a433934b..a97c0b1e2b 100644 --- a/packages/cli/src/ui/components/AskUserDialog.tsx +++ b/packages/cli/src/ui/components/AskUserDialog.tsx @@ -795,7 +795,10 @@ const ChoiceQuestionView: React.FC = ({ : undefined; // Modulo the fixed overflow (overhead + 4 lines reserved for list), use all remaining height. - const maxQuestionHeight = listHeight ? Math.max(5, listHeight - 4) : 15; + const maxQuestionHeight = + question.unconstrainedHeight && listHeight + ? Math.max(5, listHeight - 4) + : 15; const questionHeightLimit = listHeight && !isAlternateBuffer