Private
Public Access
fix: Robustness improvements for RAG tests and GUI stability
- Added import sys to src/api_hook_client.py. - Fixed App.__getattr__ to use direct attribute access on controller to avoid recursion. - Simplified _get_app_attr and _has_app_attr in src/api_hooks.py. - Centralized RAG and symbol enrichment in AppController._handle_request_event. - Updated ests/test_symbol_parsing.py to match the new enrichment flow. - Removed redundant task appending from i_status and mma_status setters. - Improved _sync_rag_engine to only set 'ready' status after indexing is confirmed. - Updated est_status_encapsulation.py to reflect setter changes.
This commit is contained in:
@@ -11,7 +11,8 @@ def test_status_properties():
|
||||
controller = app_controller.AppController()
|
||||
controller.ai_status = 'busy'
|
||||
assert controller._ai_status == 'busy'
|
||||
assert any(t.get('action') == 'set_ai_status' and t.get('value') == 'busy' for t in controller._pending_gui_tasks)
|
||||
# No longer using tasks for simple status updates as ImGui reads them directly
|
||||
assert not any(t.get('action') == 'set_ai_status' for t in controller._pending_gui_tasks)
|
||||
controller.mma_status = 'active'
|
||||
assert controller._mma_status == 'active'
|
||||
assert any(t.get('action') == 'set_mma_status' and t.get('value') == 'active' for t in controller._pending_gui_tasks)
|
||||
assert not any(t.get('action') == 'set_mma_status' for t in controller._pending_gui_tasks)
|
||||
|
||||
Reference in New Issue
Block a user