Skip to content

fix(credits): remove the 'Grant spent · $X top-up left' notice - #73540

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-b56c4749
Jul 28, 2026
Merged

fix(credits): remove the 'Grant spent · $X top-up left' notice#73540
teknium1 merged 1 commit into
mainfrom
hermes/hermes-b56c4749

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Removes the "Grant spent · $X top-up left" credits notice from every surface — it camped in the CLI/TUI status bar and desktop toasts for any subscription user holding top-up funds, with no action for the user to take (the account keeps working off top-up).

Changes

  • agent/credits_tracker.py: drop grant_cond + the credits.grant_spent emit/clear block; the grant_exhausted dev fixture now correctly produces no notice
  • ui-tui/src/app/turnController.ts: keep the turn-start clear of credits.grant_spent as back-compat for older backends that still emit the key
  • apps/desktop: remove the demo step and stale comment references; retest split-meta/accent/native-notification paths on surviving notices
  • hermes_cli/config.py + website/docs/user-guide/configuration.md: drop grant-spent from the display.credits_notices descriptions
  • Tests: policy + cold-start suites now assert the key never fires (including the old trigger state and a stale persisted latch key)

Usage bands (50/75/90), depleted, and restored notices are unchanged; /usage still reports the full balance breakdown.

Validation

Before After
Cap reached + top-up funds "• Grant spent · $X top-up left" camps in status bar / toast no notice
Depleted / restored fires unchanged
Tests 68 Python (policy/cold-start/rendering) + desktop 20 + TUI 92 vitest all green

Infographic

Removing the Grant spent notice

The grant_spent notice fired for every subscription user with top-up
funds the moment their cap was reached and camped in the CLI/TUI status
bar and desktop toasts with no action to take — the account keeps
working off top-up. Remove it everywhere:

- agent/credits_tracker.py: drop grant_cond + the emit/clear block;
  the dev fixture state now (correctly) produces no notice
- TUI: keep the turn-start clear of credits.grant_spent as back-compat
  for older backends that still emit the key
- Desktop: drop the demo step and stale comment references
- Docs/config comments: remove grant-spent from credits_notices text
- Tests updated: policy/cold-start now assert the key never fires

Usage bands, depleted, and restored notices are unchanged; /usage still
reports the full balance breakdown.
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on e533d69

ℹ️ Info

Desktop E2E visual evidence · View test artifacts · View job

1 visual diff.

inline evidence upload failed.

Failed to upload diff-665a0833239e-onboarding-overlay-diff.png with gh image (exit code 1): Error uploading /home/runner/work/_temp/e2e-evidence/diff-665a0833239e-onboarding-overlay-diff.png: step 0 (get upload token): uploadToken not found on repo page — do you have write access to NousResearch/hermes-agent? (or, if NousResearch enforces SAML SSO, authorize at https://github.com/orgs/NousResearch/sso)

@teknium1
teknium1 merged commit 5dc6a14 into main Jul 28, 2026
48 checks passed
@teknium1
teknium1 deleted the hermes/hermes-b56c4749 branch July 28, 2026 18:21
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/cli CLI entry point, hermes_cli/, setup wizard comp/desktop Electron desktop app (apps/desktop/*) comp/tui Terminal UI (ui-tui/ + tui_gateway/) provider/nous Nous Research API (OAuth) labels Jul 28, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

@rob-maron Tagging you on this credits-notice item as the soft maintainer (follow-up to #43669).

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

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/cli CLI entry point, hermes_cli/, setup wizard comp/desktop Electron desktop app (apps/desktop/*) comp/tui Terminal UI (ui-tui/ + tui_gateway/) P3 Low — cosmetic, nice to have provider/nous Nous Research API (OAuth) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants