mirror of
https://github.com/google-gemini/gemini-cli
synced 2026-04-21 13:37:17 +00:00
fix(cli): preserve hook execution status when suppressText is active
This commit is contained in:
parent
350101bdb8
commit
1ebe011f01
2 changed files with 4 additions and 5 deletions
|
|
@ -61,10 +61,9 @@ export const LoadingIndicator: React.FC<LoadingIndicatorProps> = ({
|
|||
return null;
|
||||
}
|
||||
|
||||
// Prioritize the interactive shell waiting phrase over the thought subject
|
||||
// because it conveys an actionable state for the user (waiting for input).
|
||||
// Model thoughts are real progress info and should always be shown,
|
||||
// even when suppressText is true. Only suppress random loading phrases/tips.
|
||||
// Prioritize the interactive shell waiting phrase and model thoughts over
|
||||
// suppressText because they convey real progress or actionable state.
|
||||
// Only suppress random loading phrases/tips.
|
||||
const primaryText =
|
||||
currentLoadingPhrase === INTERACTIVE_SHELL_WAITING_PHRASE
|
||||
? currentLoadingPhrase
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ export const StatusNode: React.FC<{
|
|||
elapsedTime={elapsedTime}
|
||||
forceRealStatusOnly={false}
|
||||
wittyPhrase={currentWittyPhrase}
|
||||
suppressText={suppressText}
|
||||
suppressText={activeHooks.length > 0 ? false : suppressText}
|
||||
/>
|
||||
</Box>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue