Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions packages/cli/src/ui/AppContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1137,11 +1137,9 @@ Logging in with Google... Restarting Gemini CLI to continue.
useLayoutEffect(() => {
if (mainControlsRef.current) {
const fullFooterMeasurement = measureElement(mainControlsRef.current);
if (
fullFooterMeasurement.height > 0 &&
fullFooterMeasurement.height !== controlsHeight
) {
setControlsHeight(fullFooterMeasurement.height);
const roundedHeight = Math.round(fullFooterMeasurement.height);
if (roundedHeight > 0 && roundedHeight !== controlsHeight) {
setControlsHeight(roundedHeight);
}
}
}, [buffer, terminalWidth, terminalHeight, controlsHeight]);
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/ui/components/shared/MaxSizedBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const MaxSizedBox: React.FC<MaxSizedBoxProps> = ({
const observer = new ResizeObserver((entries) => {
const entry = entries[0];
if (entry) {
setContentHeight(entry.contentRect.height);
setContentHeight(Math.round(entry.contentRect.height));
}
});
observer.observe(node);
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/ui/hooks/useIncludeDirsTrust.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ export function useIncludeDirsTrust(
'Creating custom dialog with undecidedDirs:',
undefinedTrustDirs,
);
config.clearPendingIncludeDirectories();
setCustomDialog(
<MultiFolderTrustDialog
folders={undefinedTrustDirs}
onComplete={() => {
setCustomDialog(null);
config.clearPendingIncludeDirectories();
}}
trustedDirs={added}
errors={errors}
Expand Down
Loading