Skip to content

[codex] fix HUD context percentage stability#1

Merged
franksde merged 1 commit into
mainfrom
frankx/fix-context-percent
Jun 1, 2026
Merged

[codex] fix HUD context percentage stability#1
franksde merged 1 commit into
mainfrom
frankx/fix-context-percent

Conversation

@franksde
Copy link
Copy Markdown
Owner

Summary

  • derive HUD context percentage/bar from input tokens when token totals are available
  • fall back to upstream used_percentage when token totals are missing
  • document the input-side context behavior in both READMEs

Root cause

The HUD trusted context_window.used_percentage directly. During long tasks, upstream status-line data can reflect the latest response shape, so large or small recent output could make the displayed context percentage jump.

Validation

  • npm test
  • synced dist/agy-hud.js to the installed Antigravity plugin copy
  • ran the installed plugin against testdata/statusline_payload.json

@franksde franksde merged commit 4e75da3 into main Jun 1, 2026
1 check passed
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.

1 participant