Merge pull request #8563 from uinstinct/cli-context-percentage

feat(cli): always show context percentage
This commit is contained in:
Dallin Romney 2025-11-03 18:16:32 -08:00 • committed by GitHub
commit 7c5dd3f0e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -64,7 +64,7 @@ export const BottomStatusBar: React.FC<BottomStatusBarProps> = ({
</React.Fragment>
)}
<ModeIndicator />
{contextPercentage !== undefined && contextPercentage > 75 && (
{contextPercentage !== undefined && contextPercentage > 0 && (
<React.Fragment>
<Text key="context-separator" color="dim">
{" "}

View file

@ -7,14 +7,12 @@ interface ContextPercentageDisplayProps {
/**
* Component to display the current context usage percentage
* Shows the percentage in gray color for consistency with other status indicators
* Only displays when percentage exceeds 75% threshold
* Shows the non-zero percentage in gray color for consistency with other status indicators
*/
export const ContextPercentageDisplay: React.FC<
ContextPercentageDisplayProps
> = ({ percentage }) => {
// Only show if percentage is greater than 75%
if (percentage <= 75) {
if (percentage === 0) {
return null;
}