feat(v1.2): Real-Time Observability Dashboard#12
Merged
Steffen025 merged 3 commits intomainfrom Feb 4, 2026
Merged
Conversation
added 3 commits
February 5, 2026 00:08
Phase 1 of Observability Dashboard implementation: Server Infrastructure: - Bun HTTP server on port 8889 with SQLite persistence - REST API: /api/events, /api/sessions, /api/stats - SSE streaming at /api/events/stream for real-time updates - Basic HTML dashboard at root with live event display Plugin Integration: - observability-emitter.ts handler with 14 event types - Fire-and-forget pattern (1s timeout, fail silently) - Integrated into pai-unified.ts across all hooks Event Types Captured: - Session lifecycle (start, end) - Tool executions and security blocks - User/assistant messages - Ratings (explicit and implicit) - Agent spawn/complete - Voice notifications, learning captures, ISC validation Tested and verified all endpoints working correctly.
Complete Vue 3 + Vite + Tailwind CSS dashboard: Pages: - Dashboard: Real-time stats cards + live event stream - Events: Searchable/filterable event browser with pagination - Sessions: Session list with expandable event details Components: - StatsCards: Auto-refreshing statistics (30s interval) - EventStream: SSE real-time feed with pause/resume - EventList: Paginated events with type filter - SessionList: Expandable session viewer Features: - GitHub Dark theme (#0d1117 background) - TypeScript throughout with full API typing - Vue Router for navigation - Real-time SSE connection with status indicator - Color-coded event types - Responsive design Tech Stack: - Vue 3.4 (Composition API) - Vite 5.0 - Tailwind CSS 3.4 - TypeScript 5.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Complete monitoring infrastructure for PAI-OpenCode with real-time event streaming, SQLite persistence, and a Vue 3 dashboard.
What's New
Observability Server (
:8889)Vue 3 Dashboard
Plugin Integration
observability-emitter.tshandlerpai-unified.tsAPI Endpoints
/health/events/api/events/api/events/stream/api/sessions/api/statsTesting
Files Changed