feat(cli): always show the context percentage
This commit is contained in:
parent
7bd8381d5d
commit
bc146457b6
2 changed files with 1 additions and 7 deletions
|
|
@ -64,7 +64,7 @@ export const BottomStatusBar: React.FC<BottomStatusBarProps> = ({
|
|||
</React.Fragment>
|
||||
)}
|
||||
<ModeIndicator />
|
||||
{contextPercentage !== undefined && contextPercentage > 75 && (
|
||||
{contextPercentage !== undefined && (
|
||||
<React.Fragment>
|
||||
<Text key="context-separator" color="dim">
|
||||
{" "}
|
||||
|
|
|
|||
|
|
@ -8,15 +8,9 @@ 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
|
||||
*/
|
||||
export const ContextPercentageDisplay: React.FC<
|
||||
ContextPercentageDisplayProps
|
||||
> = ({ percentage }) => {
|
||||
// Only show if percentage is greater than 75%
|
||||
if (percentage <= 75) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <Text color="dim">Context: {percentage}%</Text>;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue