hyperhive/hive-agent/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 35611e9f0d feat(#2608): show session count in agent stats window
Adds a 'sessions' chip to the per-agent stats summary panel showing how
many fresh claude sessions started within the selected time window.

Backend (hive-agent/src/stats.rs):
- New optional field `session_count: Option<u64>` on `Snapshot`
  (skip_serializing_if = None — inert-until-data, same pattern as
  first_turn_ctx). Counts rows in the `sessions` table whose
  started_at falls within the window; returns None when the table
  doesn't exist on an older db.
- New `read_session_count(conn, from)` helper (rusqlite::Result so the
  caller maps Err to None).
- Extracted per-row accumulation loop into `TurnAccum` struct +
  `push()` method to keep `snapshot()` under the too_many_lines limit.

Frontend (frontend/packages/agent/src/stats.js):
- New 'sessions' chip added to renderSummary, guarded by
  `typeof s.session_count === 'number'`, placed before the
  existing first-turn-ctx chip.
2026-07-20 19:14:32 +02:00
..
web_ui frontend/agent: drop JS dispatch tables, read backend _icon/_summary/_category 2026-07-19 17:51:12 +02:00
client.rs refactor(#2464): rename hive-ag3nt crate to hive-agent, collapse lib into main 2026-07-15 16:09:39 +02:00
events.rs chore(#2038): scope observe_mcp_health to pub(crate) per review 2026-07-20 18:24:06 +02:00
forge_notify.rs fix(#2593): mark forge notifications read on broker-delivery 2026-07-19 18:41:51 +02:00
harness_state.rs fix(#2593): mark forge notifications read on broker-delivery 2026-07-19 18:41:51 +02:00
identity.rs refactor(#2464): rename hive-ag3nt crate to hive-agent, collapse lib into main 2026-07-15 16:09:39 +02:00
login.rs refactor(#2464): rename hive-ag3nt crate to hive-agent, collapse lib into main 2026-07-15 16:09:39 +02:00
login_session.rs refactor(#2464): rename hive-ag3nt crate to hive-agent, collapse lib into main 2026-07-15 16:09:39 +02:00
main.rs hive-agent: add stream_enrich module — stamp _icon/_summary/_category on SSE events 2026-07-19 17:32:35 +02:00
mcp_config.rs feat(#2038): surface degraded mcp servers at turn start (observability) 2026-07-20 18:03:58 +02:00
paths.rs refactor(#2464): rename hive-ag3nt crate to hive-agent, collapse lib into main 2026-07-15 16:09:39 +02:00
plugins.rs refactor(#2464): rename hive-ag3nt crate to hive-agent, collapse lib into main 2026-07-15 16:09:39 +02:00
prompt.rs refactor(#2464): rename hive-ag3nt crate to hive-agent, collapse lib into main 2026-07-15 16:09:39 +02:00
serve_common.rs refactor(#2464): rename hive-ag3nt crate to hive-agent, collapse lib into main 2026-07-15 16:09:39 +02:00
stats.rs feat(#2608): show session count in agent stats window 2026-07-20 19:14:32 +02:00
stream_enrich.rs feat(#2196): move send/ask/answer body to backend _body field 2026-07-20 19:13:43 +02:00
turn.rs feat(#2038): surface degraded mcp servers at turn start (observability) 2026-07-20 18:03:58 +02:00
turn_stats.rs refactor(#2464): rename hive-ag3nt crate to hive-agent, collapse lib into main 2026-07-15 16:09:39 +02:00
vacuum.rs refactor(#2464): rename hive-ag3nt crate to hive-agent, collapse lib into main 2026-07-15 16:09:39 +02:00