Skip to content

Replace context bar with success rate bar on Dashboard, Timeline, and Agents page #60

Closed

Description

@vybe

Summary

Replace the context usage progress bar with a success rate bar across all fleet views: Agents page, Dashboard graph nodes, and Dashboard timeline rows.

The context bar (showing conversation context window fill %) is transient, only meaningful mid-session, and always 0% for stopped agents — wasted space on fleet overview pages. Success rate is always meaningful, immediately actionable, and already computed.

Design

Success Rate Bar

Show execution success rate with two time windows:

  • Primary (bar): 24h success rate — "is this agent healthy right now?"
  • Secondary (text): 7d success rate — "is this agent generally reliable?"
██████░░ 87%  (7d: 94%)

Fallback Logic

Condition Display
Has 24h executions 24h bar + 7d text
No 24h executions, has 7d 7d bar (no secondary)
No executions in 7d Gray bar with "—"

Color Coding

  • Green: ≥ 90%
  • Yellow: 50–89%
  • Red: < 50%
  • Gray: no data

Affected Views

  • src/frontend/src/views/Agents.vue — per-agent row (desktop, tablet, mobile breakpoints)
  • src/frontend/src/components/AgentNode.vue — Dashboard graph nodes
  • src/frontend/src/components/ReplayTimeline.vue — Dashboard timeline rows

Backend

The /api/agents/execution-stats endpoint already accepts an hours parameter and returns success_rate, task_count_24h, success_count, failed_count. Need to either:

  • Fetch twice (hours=24 and hours=168) and merge on frontend, or
  • Extend the endpoint to return both 24h and 7d stats in a single response (preferred)

Context Bar Relocation

Move the context usage bar to the Agent Detail header where it's contextually useful for monitoring a specific agent's active session.

Notes

  • Success rate bar uses the same visual pattern (progress bar, color-coded) so the layout change is minimal
  • Layout should use fixed-width for the 7d secondary text to prevent breakage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-p1type-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions