mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-12 06:10:42 -07:00
fix(cli): prevent plan truncation in approval dialog by supporting unconstrained heights
Fixes #20716
This commit is contained in:
@@ -789,9 +789,13 @@ const ChoiceQuestionView: React.FC<ChoiceQuestionViewProps> = ({
|
||||
const listHeight = availableHeight
|
||||
? Math.max(1, availableHeight - overhead)
|
||||
: undefined;
|
||||
const maxQuestionHeight =
|
||||
question.unconstrainedHeight && listHeight
|
||||
? Math.max(1, listHeight - DIALOG_PADDING - selectionItems.length * 2)
|
||||
: 15;
|
||||
const questionHeight =
|
||||
listHeight && !isAlternateBuffer
|
||||
? Math.min(15, Math.max(1, listHeight - DIALOG_PADDING))
|
||||
? Math.min(maxQuestionHeight, Math.max(1, listHeight - DIALOG_PADDING))
|
||||
: undefined;
|
||||
const maxItemsToShow =
|
||||
listHeight && questionHeight
|
||||
|
||||
Reference in New Issue
Block a user