From 18fdb6b47850fe73f056e63541e75ac512970907 Mon Sep 17 00:00:00 2001 From: modimihir07 Date: Sun, 17 May 2026 16:13:23 +0530 Subject: [PATCH] Add AI Chat interface + sidebar toggle fix + production polish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - New Chat page with 3-agent terminal interface (opencode/hermes/gemini) - Chat sidebar with agent selection, status indicators, quick prompts - Message bubbles with typing indicator animation - Full chat history persistence via /api/chat endpoint - Agent CLI execution with timeout fallback messaging - Sidebar toggle: minimize ◀ / maximize ▶ with dynamic icon - Collapsed sidebar: centered icons, tighter padding, cleaner alignment - Fixed chat agent execution for interactive CLIs (non-blocking) - Added /api/chat and /api/chat/history API endpoints - All 13 dashboard pages serving 200 --- audit/audit.log | 4 + dashboard/api.js | 2 + dashboard/index.html | 3 +- dashboard/pages/chat.js | 243 ++++++++++++++++++++++++++ dashboard/styles.css | 127 +++++++++++++- dashboard/utils.js | 14 +- data/chat-history.json | 46 +++++ scheduler/jobs/daily-standup-job.json | 11 -- server.py | 88 ++++++++++ 9 files changed, 521 insertions(+), 17 deletions(-) create mode 100644 dashboard/pages/chat.js create mode 100644 data/chat-history.json delete mode 100644 scheduler/jobs/daily-standup-job.json diff --git a/audit/audit.log b/audit/audit.log index 30ab031..4a7bcbb 100644 --- a/audit/audit.log +++ b/audit/audit.log @@ -1,3 +1,7 @@ {"action": "skill_run", "skill": "heartbeat", "agent": "opencode", "run_id": "d52d517a", "timestamp": "2026-05-17T09:58:07.559900+00:00", "id": "36284cbc"} {"action": "skill_run", "skill": "devops-audit", "agent": "opencode", "run_id": "92cd4f97", "timestamp": "2026-05-17T09:59:08.213032+00:00", "id": "40695cd7"} {"action": "skill_run", "skill": "heartbeat", "agent": "opencode", "run_id": "f18c903b", "timestamp": "2026-05-17T10:18:44.356138+00:00", "id": "c9117c6d"} +{"action": "job_deleted", "job_id": "daily-standup-default", "timestamp": "2026-05-17T10:34:38.978261+00:00", "id": "35513486"} +{"action": "chat_message", "agent": "opencode", "msg_preview": "hello", "timestamp": "2026-05-17T10:37:06.791873+00:00", "id": "c41e3054"} +{"action": "chat_message", "agent": "opencode", "msg_preview": "hello", "timestamp": "2026-05-17T10:40:56.501310+00:00", "id": "6d4ab33d"} +{"action": "chat_message", "agent": "opencode", "msg_preview": "hello", "timestamp": "2026-05-17T10:42:36.570364+00:00", "id": "358f4058"} diff --git a/dashboard/api.js b/dashboard/api.js index f639be8..ea241f3 100644 --- a/dashboard/api.js +++ b/dashboard/api.js @@ -43,4 +43,6 @@ const api = { updateSettings: (settings) => api.put('/api/settings', { settings }), getStandards: () => api.get('/api/standards'), discoverStandards: () => api.post('/api/standards/discover'), + chat: (agent, message) => api.post('/api/chat', { agent, message }), + getChatHistory: () => api.get('/api/chat/history'), }; diff --git a/dashboard/index.html b/dashboard/index.html index 40c27b7..ccb9ae1 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -16,7 +16,7 @@
Agentic OS - +