fix: Ensure CWD and auto-accept indicator are always visible

- This commit addresses an issue where the Current Working Directory (CWD) and the auto-accept indicator were not consistently visible, especially when tool confirmations were displayed.
- Previously, the CWD could be hidden during tool confirmation prompts, potentially leading to confusion about the context in which Gemini CLI was operating.

Fixes https://b.corp.google.com/issues/414289185
This commit is contained in:
Taylor Mullen 2025-05-17 22:36:33 -07:00 committed by N. Taylor Mullen
parent aca27709df
commit 5bddf40fd1
1 changed files with 15 additions and 17 deletions

View File

@ -334,24 +334,22 @@ export const App = ({
showAutoAcceptIndicator ? <AutoAcceptIndicator /> : undefined
}
/>
{isInputActive && (
<Box
marginTop={1}
display="flex"
justifyContent="space-between"
width="100%"
>
<Box>
<>
<Text color={Colors.SubtleComment}>cwd: </Text>
<Text color={Colors.LightBlue}>
{shortenPath(config.getTargetDir(), 70)}
</Text>
</>
</Box>
{showAutoAcceptIndicator && <AutoAcceptIndicator />}
<Box
marginTop={1}
display="flex"
justifyContent="space-between"
width="100%"
>
<Box>
<>
<Text color={Colors.SubtleComment}>cwd: </Text>
<Text color={Colors.LightBlue}>
{shortenPath(config.getTargetDir(), 70)}
</Text>
</>
</Box>
)}
{showAutoAcceptIndicator && <AutoAcceptIndicator />}
</Box>
{isInputActive && (
<>
<InputPrompt