Repository navigation
feat(hud): add optional week forecast to status line - #810
Merged
Merged
Conversation
Show the estimate at reset from the Claude week data on stdin. Keep the saved forecast option in both init paths. Task: feat/805-hud-tokenmeter-forecast
Save detail and forecast changes together before the HUD switch. Show the forecast state in status output without a config change. Task: feat/805-hud-tokenmeter-forecast
Keep the default render bytes fixed. Check the opt-in config, invalid input fallback, capacity line order, and import boundary. Task: feat/805-hud-tokenmeter-forecast
Check that init keeps each stored forecast choice. Compare HUD arithmetic with the pinned tokenmeter status line. Check that the installed HUD can show a forecast from stdin alone. Task: feat/805-hud-tokenmeter-forecast
The install now includes an opt-in HUD week forecast component. Record its file in all three install snapshots. Task: feat/805-hud-tokenmeter-forecast
Explain the forecast flags, input, and fallback. Record how the HUD applies detail and forecast changes with enable or disable flags. Task: feat/805-hud-tokenmeter-forecast
Show where Devflow saves the forecast option and name the component that displays it. Task: feat/805-hud-tokenmeter-forecast
…er-forecast # Conflicts: # CHANGELOG.md
Compare forecast values at the start limit, usage limits, and reset. Check the display cap with the pinned CLI. Task: resolve-batch-1
Return no forecast when the reset is not in the future. Test a direct call with a past reset and check both sides of the display cap. Task: resolve-batch-1
Owner
Author
Test Plan Evidence — c7cced0Verified 24/24: VERIFIED-CI 21, ATTESTED-LOCAL 3, UNVERIFIED 0, STALE 0, FAILED 0, INDETERMINATE 0
Review Summary (cycle 1, reviewed head a30bb33)Recommendation: APPROVED WITH COMMENTS. Gate level: lean. Focuses: security, testing, reliability.
The reviewers checked these points and found no issue:
Resolution Summary
Verification at ad6c452: build PASS, full test suite PASS (413 files, 19,720 tests), CI PASS. The 10 test-plan items that the fixes touched were run again and pass. CI at c7cced0: PASS. |
Merged
dean0x
added a commit
that referenced
this pull request
Nov 24, 2026
## Summary This PR sets the version to 3.21.0 and moves the `[Unreleased]` notes to the 3.21.0 section. After the merge, a `v3.21.0` tag on the merge commit starts the release workflow. ## Changes - `package.json` and `package-lock.json`: version 3.20.0 to 3.21.0. - `CHANGELOG.md`: new `## [3.21.0] - 2026-11-24` section, new empty `[Unreleased]` section, and the 3.21.0 compare link. - `CHANGELOG.md`: the `[Unreleased]` compare link now starts at `v3.21.0`. It started at `v3.8.0` before. ## Shipped in 3.21.0 - #794: Code Mode flag (closes #792). - #810: week forecast in the status line (closes #805). - #811: working memory is opt-in, and the note has an 8 KB limit (closes #807). - #809: acceptance criteria under level 2 to 4 headings (closes #808). ## Breaking Changes None. Working memory is off by default for new installs. Existing installs keep their choice. `devflow memory --enable` turns it on. ## Testing - `npm run build`: pass. - `npm run test`: 417 files, 20084 passed, 8 skipped, 0 failed. - `npm run test:integration`: 5 files, 55 passed. - `npm run version:bump -- 3.21.0` a second time changes no file. - The tests ran on the base commit c8282b1. This PR changes only the version and the changelog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The devflow status line shows the Claude week percent (
7d). It does not show the forecast of that percent at the reset time. This change adds an optional forecast, which is off by default.Changes
Features
devflow hud --forecastoption and thedevflow hud --no-forecastoption.forecastfield to~/.devflow/hud.json. The default value isfalse.7d. For example:→ 80% by reset.runs out in 21h 30m.forecastvalue whendevflow initruns.Documentation
Bug Fixes
hudflag is given, all of them now take effect. For example,--detail --enable.Breaking Changes
None expected. With the option off, the status line output is byte-identical.
Testing
Test Coverage
Testing Gaps
Known Limits
runs out in <1m.21h 30m. tokenmeter prints21h.0m.--statusis given with a change flag, devflow only prints the status.Related Issues
Closes #805