Skip to content

fix: preserve the status line when context usage exceeds 100% - #27

Open
1aifanatic wants to merge 2 commits into
scaledown-team:mainfrom
1aifanatic:fix/status-context-overflow
Open

1aifanatic wants to merge 2 commits into
scaledown-team:mainfrom
1aifanatic:fix/status-context-overflow

Conversation

@1aifanatic

Copy link
Copy Markdown

At 110% context usage, the progress bar calls repeat(-1) and the top-level catch hides the entire status line. Cap the bar at ten cells while retaining the actual percentage; omit invalid context values without losing savings/request counts.

Fixes #25.

Validation: build plus 14 command-level regression cases covering 0/50/100/110/250%, missing/negative/non-numeric fields, and ratio overflow. Eight cases fail against the original command. Tests use temporary homes and a fresh update cache, and are wired into CI/release matrices.

The pre-existing ESM failures in the general CI suites are tracked in #24; this change is independently based on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Status line disappears when context usage exceeds its window

1 participant