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
|
showAutoAcceptIndicator ? <AutoAcceptIndicator /> : undefined
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{isInputActive && (
|
<Box
|
||||||
<Box
|
marginTop={1}
|
||||||
marginTop={1}
|
display="flex"
|
||||||
display="flex"
|
justifyContent="space-between"
|
||||||
justifyContent="space-between"
|
width="100%"
|
||||||
width="100%"
|
>
|
||||||
>
|
<Box>
|
||||||
<Box>
|
<>
|
||||||
<>
|
<Text color={Colors.SubtleComment}>cwd: </Text>
|
||||||
<Text color={Colors.SubtleComment}>cwd: </Text>
|
<Text color={Colors.LightBlue}>
|
||||||
<Text color={Colors.LightBlue}>
|
{shortenPath(config.getTargetDir(), 70)}
|
||||||
{shortenPath(config.getTargetDir(), 70)}
|
</Text>
|
||||||
</Text>
|
</>
|
||||||
</>
|
|
||||||
</Box>
|
|
||||||
{showAutoAcceptIndicator && <AutoAcceptIndicator />}
|
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
{showAutoAcceptIndicator && <AutoAcceptIndicator />}
|
||||||
|
</Box>
|
||||||
{isInputActive && (
|
{isInputActive && (
|
||||||
<>
|
<>
|
||||||
<InputPrompt
|
<InputPrompt
|
||||||
|
|
Loading…
Reference in New Issue