Commit Graph

6 Commits

Author SHA1 Message Date
Nyk 531101dc2d fix(tui): only show last seen when agent actually heartbeated 2026-03-21 23:10:22 +07:00
Nyk e2e9560d1d fix(tui): last seen fallback, session cost aggregation, dark blue header
- Fall back to updated_at/created_at when last_seen is null
- Sum session estimatedCost when token_usage table is empty
- Dark navy blue header background (256-color 17)
2026-03-21 22:54:24 +07:00
Nyk 3ada2e5380 feat(tui): v2 with arrow navigation, agent detail, and chat viewer
- Arrow keys navigate agent/task lists with highlighted selection
- Tab switches between agents and tasks panels
- Enter on agent opens detail view with sessions list
- Enter on session loads chat transcript
- PgUp/PgDn scrolls chat history
- Esc goes back to dashboard
- Scrolling window keeps cursor visible in long lists
2026-03-21 22:48:32 +07:00
Nyk 404092e81d fix(tui): treat DB+Disk as essential health checks 2026-03-21 22:42:50 +07:00
Nyk aa65a1b0b2 fix(tui): alternate screen buffer + smarter health display
- Use alternate screen buffer so terminal doesn't scroll
- Show "healthy (no gateway)" when core checks pass but gateway is down
- Restore original terminal state on exit
2026-03-21 22:41:42 +07:00
Nyk 06cfb3d9db feat(tui): add terminal dashboard for Mission Control
Zero-dependency TUI using raw ANSI escape codes. Shows:
- System health status with connection indicator
- Agents panel (sorted by status, with last heartbeat)
- Tasks panel (recent tasks with status and assignee)
- Token costs summary (24h)

Keyboard controls:
- r: refresh now
- a: focus agents panel
- t: focus tasks panel
- w: wake first sleeping agent
- q/Esc: quit

Auto-refreshes every 5s (configurable with --refresh flag).
Uses same profile/auth system as CLI and MCP server.

Run with: pnpm mc:tui
2026-03-21 21:46:45 +07:00