Skip to content

Commit 7c5dd3f

Browse files
authored
Merge pull request #8563 from uinstinct/cli-context-percentage
feat(cli): always show context percentage
2 parents acf624f + 9548d05 commit 7c5dd3f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

extensions/cli/src/ui/components/BottomStatusBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const BottomStatusBar: React.FC<BottomStatusBarProps> = ({
6464
</React.Fragment>
6565
)}
6666
<ModeIndicator />
67-
{contextPercentage !== undefined && contextPercentage > 75 && (
67+
{contextPercentage !== undefined && contextPercentage > 0 && (
6868
<React.Fragment>
6969
<Text key="context-separator" color="dim">
7070
{" "}

extensions/cli/src/ui/components/ContextPercentageDisplay.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ interface ContextPercentageDisplayProps {
77

88
/**
99
* Component to display the current context usage percentage
10-
* Shows the percentage in gray color for consistency with other status indicators
11-
* Only displays when percentage exceeds 75% threshold
10+
* Shows the non-zero percentage in gray color for consistency with other status indicators
1211
*/
1312
export const ContextPercentageDisplay: React.FC<
1413
ContextPercentageDisplayProps
1514
> = ({ percentage }) => {
16-
// Only show if percentage is greater than 75%
17-
if (percentage <= 75) {
15+
if (percentage === 0) {
1816
return null;
1917
}
2018

0 commit comments

Comments
 (0)