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

View File

@@ -1430,8 +1430,7 @@ Logging in with Google... Restarting Gemini CLI to continue.
(streamingState === StreamingState.Idle ||
streamingState === StreamingState.Responding ||
streamingState === StreamingState.WaitingForConfirmation) &&
!proQuotaRequest &&
!copyModeEnabled;
!proQuotaRequest;
const observerRef = useRef<ResizeObserver | null>(null);
const [controlsHeight, setControlsHeight] = useState(0);

View File

@@ -172,9 +172,7 @@ export const Composer = ({ isFocused = true }: { isFocused?: boolean }) => {
{showUiDetails &&
!settings.merged.ui.hideFooter &&
!isScreenReaderEnabled && (
<Footer copyModeEnabled={uiState.copyModeEnabled} />
)}
!isScreenReaderEnabled && <Footer />}
</Box>
);
};

View File

@@ -178,9 +178,7 @@ interface FooterColumn {
isHighPriority: boolean;
}
export const Footer: React.FC<{ copyModeEnabled?: boolean }> = ({
copyModeEnabled = false,
}) => {
export const Footer: React.FC = () => {
const uiState = useUIState();
const config = useConfig();
const settings = useSettings();
@@ -198,10 +196,6 @@ export const Footer: React.FC<{ copyModeEnabled?: boolean }> = ({
}
}, [authType]);
if (copyModeEnabled) {
return <Box height={1} />;
}
const {
model,
targetDir,

View File

@@ -1342,7 +1342,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
);
useKeypress(handleInput, {
isActive: !isEmbeddedShellFocused,
isActive: !isEmbeddedShellFocused && !copyModeEnabled,
priority: true,
});