Add runtime state validation before ForgeAgent HTTP call

- Check process_running and ready state before making inference request
- Emit descriptive error messages for each failure scenario
- Handle local vs remote connection modes appropriately
- Validation score: 100 (was 0)

Result: {"status":"keep","validation_score":100,"response_time_ms":500}
This commit is contained in:
Evandro Fonseca Junior committed 2026-04-02 14:37:01 -03:00
1 parent 4a867b36ff
commit 77c57c3d45
84 files changed
+7860 -1266

No files matched your search

+10 -6
View File
@@ -15,6 +15,7 @@ This milestone hardens the existing Tauri runtime workspace so operators can tru
- [x] **Phase 3: Unified Runtime Workspace** - Consolidate status, actions, settings, and health guidance into one authoritative workspace. (completed 2026-03-29)
- [x] **Phase 4: Hugging Face Download Engine** - Streaming download of GGUF models from Hugging Face with real-time progress, cancellation, and managed-model storage. (completed 2026-03-31)
- [ ] **Phase 5: Model Source Validation** - Harden source-specific model and path selection with reliable validation and recovery cues.
- [x] **Phase 6: Chat UI Redesign (Manus AI System Design)** - Redesign the chat UI to follow Manus AI system design with correct color tokens, component decomposition, and UX patterns. (completed 2026-04-02)
## Phase Details
@@ -96,7 +97,7 @@ Plans:
### Phase 6: Chat UI Redesign (Manus AI System Design)
**Goal**: Redesign the chat UI to follow Manus AI system design with correct color tokens, component decomposition, and UX patterns.
**Depends on**: Phase 5
**Requirements**: UI-01, UI-02, UI-03
**Requirements**: UI-01, UI-02, UI-03, UI-04
**Success Criteria** (what must be TRUE):
1. Model selector lives inside the chat input pill (hero and regular), not the sidebar.
2. scan_models returns only top-level GGUF files (no subdirectory traversal).
@@ -104,11 +105,14 @@ Plans:
4. Send button uses PaperPlaneRight icon only.
5. App uses Manus color tokens (#171717 base, #1E1E1E surface, #262626 elevated).
6. Settings page aligns to Manus design tokens.
**Plans**: 3 plans
7. Agentic mode renders a Manus-style execution transcript with a dedicated thinking card, dense system progress rows, and a clean final response block.
8. Agentic execution progress can stream into the chat UI via Tauri events without breaking normal chat mode.
**Plans**: 4 plans
Plans:
- [ ] `06-01-PLAN.md` — Backend scan fix + ModelSelectorPill + Sidebar cleanup + ChatView wiring
- [ ] `06-02-PLAN.md` — Global Manus tokens + thinking indicator + send button + message widths
- [ ] `06-03-PLAN.md` — Settings page Manus token alignment
- [x] `06-01-PLAN.md` — Backend scan fix + ModelSelectorPill + Sidebar cleanup + ChatView wiring
- [x] `06-02-PLAN.md` — Global Manus tokens + thinking indicator + send button + message widths
- [x] `06-03-PLAN.md` — Settings page Manus token alignment
- [x] `06-04-PLAN.md` — Agentic Manus conversation blocks + Tauri progress event bridge + final response/artifact presentation
**UI hint**: yes
## Progress
@@ -120,4 +124,4 @@ Plans:
| 3. Unified Runtime Workspace | 3/3 | Complete | 2026-03-29 |
| 4. Hugging Face Download Engine | 3/3 | Complete | 2026-03-31 |
| 5. Model Source Validation | 3/3 | Planned | - |
| 6. Chat UI Redesign | 0/3 | Planned | - |
| 6. Chat UI Redesign | 4/4 | Complete | 2026-04-02 |