openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Feature Request : Live typed event stream log real-time colour-coded agent activity feed in the dashboard

Open githb-ac opened this issue 6 months ago • 2 comments

Summary

Add a live typed event stream log to the OpenHuman dashboard that displays every agent event in real time as a scrolling, colour-coded feed. Each entry shows a timestamp, agent name, event type, and message - giving operators an instant, continuous view of what every agent in the swarm is doing without tailing raw log files.

Problem

Agent activity currently lives in log files or stdout. Operators who want to understand what is happening across a concurrent multi-agent run must either tail multiple log streams simultaneously or wait for a task to complete and review output after the fact. There is no live, unified, human-readable feed of agent events inside the dashboard.

This gap means:

  • Problems (stalled agents, failed tool calls, hallucination flags) are noticed late
  • Operators cannot distinguish between event types (a tool call vs. a warning vs. a QC failure) at a glance
  • There is no easy way to correlate events across agents working in parallel on the same task chain
  • Debugging a failed run requires log archaeology rather than real-time observation

Solution

Scope: app (dashboard panel) + core (telemetry event emission)

Event types and colour coding:

Type Label Colour
Tool call TOOL Blue
Success / task complete OK Green
Warning / hallucination flag WARN Amber
Error / QC rejection ERR Red
Info / orchestrator message INFO Blue (muted)

Each log entry contains:

  • timestamp - HH:MM:SS
  • agent - agent name (truncated if long)
  • message - human-readable event description
  • type badge - colour-coded pill showing event type

Stream behaviour:

  • New events are prepended at the top (newest first)
  • The feed holds a configurable maximum number of entries (default 200) before oldest entries are dropped
  • The feed auto-scrolls to the latest entry unless the operator has manually scrolled up, in which case it pauses auto-scroll and shows a "Jump to latest" button
  • Events are streamed from the core telemetry bus over the same SSE connection used by the dashboard

Filtering:

  • Operators can filter by event type (toggle individual types on/off)
  • Operators can filter by agent name (free-text search)
  • Filters are applied client-side with no round-trip to core

Export:

  • A "Download log" button exports the current in-memory feed as a newline-delimited JSON file for offline analysis

Configuration in config.yaml:

dashboard:
  event_stream:
    enabled: true
    max_entries: 200
    new_entries: top     # or: bottom

Acceptance criteria

  • [ ] Live feed - agent events appear in the dashboard stream in real time via SSE, with no manual refresh required
  • [ ] Typed entries - each entry shows timestamp, agent name, message, and a colour-coded type badge (TOOL / OK / WARN / ERR / INFO)
  • [ ] Colour coding - badge and entry colours match the defined scheme (blue / green / amber / red)
  • [ ] Max entries enforced - feed drops oldest entries when max_entries is reached
  • [ ] Auto-scroll - feed auto-scrolls to latest; pauses if operator scrolls up; shows "Jump to latest" button when paused
  • [ ] Type filter - operators can toggle individual event types on/off; filter applies client-side instantly
  • [ ] Agent filter - free-text search filters entries by agent name client-side
  • [ ] Download log - exports current feed as newline-delimited JSON
  • [ ] Config-driven - max_entries and new_entries order are read from config.yaml
  • [ ] Diff coverage ≥ 80% - the implementing PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by .github/workflows/coverage.yml)

Related

  • OpenHuman agent architecture: https://tinyhumans.gitbook.io/openhuman/
  • Proposed: Concurrent orchestrator visibility layer (FR4)
  • Proposed: Team Lead quality review loop (FR6)
  • Proposed: Teams and agents management panel (FR9)

Dashboard mockup attached

dashboard-example.html

githb-ac avatar May 15 '26 20:05 githb-ac

Hey @githb-ac — thanks for raising this! Just linking it to #1840 which covers the broader unified dashboard vision (including the live event stream). Keeping both open so we can track the pieces individually. 🤙

graycyrus avatar May 16 '26 05:05 graycyrus

I can take a focused first slice here: core DomainEvent telemetry over SSE plus an app-side live event feed with typed entries, client-side filters, bounded history, and NDJSON export. I will keep the broader #1840 dashboard metrics/model-health/cost panels out of this PR so the change stays reviewable.

EvanWangZ avatar May 17 '26 15:05 EvanWangZ