Private
Public Access
0
0

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:
2026-05-15 17:17:05 -04:00
parent a2a6d4cb65
commit 7f2f9c1989
8 changed files with 130 additions and 91 deletions
+7 -2
View File
@@ -63,11 +63,16 @@ class ApiHookClient:
response = requests.post(url, json=data, headers=headers, timeout=timeout)
elif method == 'DELETE':
response = requests.delete(url, headers=headers, timeout=timeout)
if response.status_code == 200:
return response.json()
else:
sys.stderr.write(f"[DEBUG Client] Request failed: {method} {path} - status={response.status_code}\n")
sys.stderr.flush()
return None
except Exception:
# Silently ignore connection errors unless we are in a wait loop
except Exception as e:
sys.stderr.write(f"[DEBUG Client] Request error: {method} {path} - {e}\n")
sys.stderr.flush()
return None
def wait_for_server(self, timeout: int = 15) -> bool: