fix(cli): preserve hook execution status when suppressText is active

This commit is contained in:
euxaristia 2026-04-09 18:11:58 -04:00
parent 350101bdb8
commit 1ebe011f01
2 changed files with 4 additions and 5 deletions

View file

@ -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

View file

@ -150,7 +150,7 @@ export const StatusNode: React.FC<{
elapsedTime={elapsedTime}
forceRealStatusOnly={false}
wittyPhrase={currentWittyPhrase}
suppressText={suppressText}
suppressText={activeHooks.length > 0 ? false : suppressText}
/>
</Box>
);