fix(plan): prevent plan truncation in approval dialog by supporting unconstrained heights (#21037)

Co-authored-by: jacob314 <jacob314@gmail.com>
This commit is contained in:
Adib234
2026-03-10 15:34:10 -04:00
committed by GitHub
parent bc75a61982
commit e5615f47c4
5 changed files with 18 additions and 11 deletions

View File

@@ -1389,11 +1389,7 @@ Logging in with Google... Restarting Gemini CLI to continue.
// Compute available terminal height based on controls measurement
const availableTerminalHeight = Math.max(
0,
terminalHeight -
controlsHeight -
staticExtraHeight -
2 -
backgroundShellHeight,
terminalHeight - controlsHeight - backgroundShellHeight - 1,
);
config.setShellExecutionConfig({