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:
parent
aca27709df
commit
5bddf40fd1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue