Merge pull request #8563 from uinstinct/cli-context-percentage
feat(cli): always show context percentage
This commit is contained in:
commit
7c5dd3f0e6
2 changed files with 3 additions and 5 deletions
|
|
@ -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">
|
||||
{" "}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue