Skip to content

Add context window indicator and fix spend badge#15

Open
LiangRongguo wants to merge 4 commits into
mainfrom
feat/context-bar-and-fixes
Open

Add context window indicator and fix spend badge#15
LiangRongguo wants to merge 4 commits into
mainfrom
feat/context-bar-and-fixes

Conversation

@LiangRongguo
Copy link
Copy Markdown
Collaborator

Summary

  • Fix spend badge: Strip ANSI escape codes from isaac usage output so Daily/Weekly/Monthly parsing works for all users
  • ListView context bar: Full-width progress bar below each agent name in the task list
  • FocusView context bar: Inline context indicator in focus panel headers next to the status badge
  • Smooth gradient colors: Replace stepped green/yellow/red thresholds with a continuous HSL gradient (vivid green → yellow → orange → red) across all views (board cards, ListView, FocusView, Sidebar)

Test plan

  • Verified /api/usage returns correct values after ANSI fix
  • Confirm spend badge appears in the header after page refresh
  • Verify context bars render in ListView and FocusView
  • Toggle "Context progress bar" in Settings > Agent Cards and confirm fallback text
  • Confirm gradient transitions smoothly from green at low usage to red at high usage

This pull request was AI-assisted by Isaac.

… output

The isaac CLI outputs ANSI color escape sequences even when stdout is piped,
causing the Daily/Weekly/Monthly regex parsing to fail silently for all users.

Co-authored-by: Isaac
Shows a full-width context bar below each agent name in the task list,
using the same color thresholds (green/yellow/red) and settings toggle
as the board view cards.

Co-authored-by: Isaac
Shows an inline context bar next to the status badge in each focus
panel, consistent with ListView and board view styling.

Co-authored-by: Isaac
Replace the stepped green/yellow/red thresholds with a continuous HSL
gradient that transitions smoothly from green → yellow → red as context
usage increases. Applied consistently across all four views (board cards,
ListView, FocusView, Sidebar).

Co-authored-by: Isaac
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