mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 22:02:59 -07:00
revert(cli): bring back input box and footer visibility in copy mode (#24504)
This commit is contained in:
@@ -1430,8 +1430,7 @@ Logging in with Google... Restarting Gemini CLI to continue.
|
|||||||
(streamingState === StreamingState.Idle ||
|
(streamingState === StreamingState.Idle ||
|
||||||
streamingState === StreamingState.Responding ||
|
streamingState === StreamingState.Responding ||
|
||||||
streamingState === StreamingState.WaitingForConfirmation) &&
|
streamingState === StreamingState.WaitingForConfirmation) &&
|
||||||
!proQuotaRequest &&
|
!proQuotaRequest;
|
||||||
!copyModeEnabled;
|
|
||||||
|
|
||||||
const observerRef = useRef<ResizeObserver | null>(null);
|
const observerRef = useRef<ResizeObserver | null>(null);
|
||||||
const [controlsHeight, setControlsHeight] = useState(0);
|
const [controlsHeight, setControlsHeight] = useState(0);
|
||||||
|
|||||||
@@ -172,9 +172,7 @@ export const Composer = ({ isFocused = true }: { isFocused?: boolean }) => {
|
|||||||
|
|
||||||
{showUiDetails &&
|
{showUiDetails &&
|
||||||
!settings.merged.ui.hideFooter &&
|
!settings.merged.ui.hideFooter &&
|
||||||
!isScreenReaderEnabled && (
|
!isScreenReaderEnabled && <Footer />}
|
||||||
<Footer copyModeEnabled={uiState.copyModeEnabled} />
|
|
||||||
)}
|
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -178,9 +178,7 @@ interface FooterColumn {
|
|||||||
isHighPriority: boolean;
|
isHighPriority: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Footer: React.FC<{ copyModeEnabled?: boolean }> = ({
|
export const Footer: React.FC = () => {
|
||||||
copyModeEnabled = false,
|
|
||||||
}) => {
|
|
||||||
const uiState = useUIState();
|
const uiState = useUIState();
|
||||||
const config = useConfig();
|
const config = useConfig();
|
||||||
const settings = useSettings();
|
const settings = useSettings();
|
||||||
@@ -198,10 +196,6 @@ export const Footer: React.FC<{ copyModeEnabled?: boolean }> = ({
|
|||||||
}
|
}
|
||||||
}, [authType]);
|
}, [authType]);
|
||||||
|
|
||||||
if (copyModeEnabled) {
|
|
||||||
return <Box height={1} />;
|
|
||||||
}
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
model,
|
model,
|
||||||
targetDir,
|
targetDir,
|
||||||
|
|||||||
@@ -1342,7 +1342,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
useKeypress(handleInput, {
|
useKeypress(handleInput, {
|
||||||
isActive: !isEmbeddedShellFocused,
|
isActive: !isEmbeddedShellFocused && !copyModeEnabled,
|
||||||
priority: true,
|
priority: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user