feat: Add coordinator log viewer to cluster UI

- Created /api/cluster/logs endpoint to read coordinator.log
- Added real-time log display in cluster UI (updates every 3s)
- Shows last 100 lines of coordinator.log in terminal-style display
- Includes manual refresh button
- Improves debugging experience - no need to SSH for logs

User feedback: 'why dont we add the output of the log at the bottom of the page so i know whats going on'

This addresses poor visibility into coordinator errors and failures.
Next step: Fix SSH timeout issue blocking worker execution.
This commit is contained in:
mindesbunister
2025-12-01 11:49:23 +01:00
parent db33af9f17
commit 1f83a7d7c4
5 changed files with 727 additions and 36 deletions

View File

@@ -5,14 +5,14 @@ You are working on Trading Bot v4, a real money algorithmic trading system manag
MANDATORY FIRST STEPS:
1. READ THE ENTIRE .github/copilot-instructions.md FILE
1. READ THE ENTIRE .github/copilot-instructions.md FILE CAREFULLY
- Start at line 1 with the VERIFICATION MANDATE
- This is 4,400+ lines of critical context
- Every section matters - shortcuts cause financial losses
- Pay special attention to Common Pitfalls (60+ documented bugs)
- Clean up after yourself in code and documentation
- keep user data secure and private
- keep a clean structure for future developers
- Keep user data secure and private
- Keep a clean structure for future developers
2. UNDERSTAND THE VERIFICATION ETHOS
- NEVER say "done", "fixed", "working" without 100% verification