Add logs tab with real-time server output and consolidate syntax highlighting

- Implement dedicated Logs tab showing stdout/stderr from OpenCode server
- Add log level parsing (INFO, ERROR, WARN, DEBUG) with color coding
- Stream logs from main process to renderer via IPC events
- Persist scroll position and auto-scroll state per instance
- Synchronize instance IDs between renderer and main process
- Consolidate syntax highlighting to single shared highlighter instance
- Optimize markdown rendering with global highlighter initialization
- Fix code block copy button to always appear on right side
- Enable debug logging with --print-logs --log-level DEBUG flags
This commit is contained in:
Shantur Rathore
2025-10-23 11:14:35 +01:00
parent b836086978
commit 3c5c4755b8
13 changed files with 779 additions and 157 deletions

View File

@@ -67,17 +67,17 @@ Each task file contains:
### Phase 2: Core Chat (Tasks 006-010)
- [ ] 006 - Instance & Session Tabs
- [ ] 007 - Message Display
- [ ] 008 - SSE Integration
- [ ] 009 - Prompt Input (Basic)
- [ ] 010 - Tool Call Rendering
- [x] 006 - Instance & Session Tabs
- [x] 007 - Message Display
- [x] 008 - SSE Integration
- [x] 009 - Prompt Input (Basic)
- [x] 010 - Tool Call Rendering
### Phase 3: Essential Features (Tasks 011-015)
- [ ] 011 - Agent/Model Selectors
- [ ] 012 - Markdown Rendering
- [ ] 013 - Logs Tab
- [x] 011 - Agent/Model Selectors
- [x] 012 - Markdown Rendering
- [x] 013 - Logs Tab
- [ ] 014 - Error Handling
- [ ] 015 - Keyboard Shortcuts