revert(cli): bring back input box and footer visibility in copy mode (#24504)

This commit is contained in:
Sehoon Shon
2026-04-02 02:54:51 -04:00
committed by GitHub
parent 66c07d7296
commit 242afd49a1
4 changed files with 4 additions and 13 deletions
+1 -2
View File
@@ -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);
+1 -3
View File
@@ -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>
); );
}; };
+1 -7
View File
@@ -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,
}); });