feat(mma): Finalize Orchestrator Integration and fix all regressions
This commit is contained in:
@@ -92,14 +92,7 @@ def close_session():
|
||||
if _comms_fh is None:
|
||||
return
|
||||
|
||||
# Trigger auto-whitelist update for this session before closing
|
||||
try:
|
||||
from log_registry import LogRegistry
|
||||
registry = LogRegistry(str(_LOG_DIR / "log_registry.toml"))
|
||||
registry.update_auto_whitelist_status(_session_id)
|
||||
except Exception as e:
|
||||
print(f"Warning: Could not update auto-whitelist on close: {e}")
|
||||
|
||||
# Close files first to ensure all data is flushed to disk
|
||||
if _comms_fh:
|
||||
_comms_fh.close()
|
||||
_comms_fh = None
|
||||
@@ -113,6 +106,14 @@ def close_session():
|
||||
_cli_fh.close()
|
||||
_cli_fh = None
|
||||
|
||||
# Trigger auto-whitelist update for this session after closing
|
||||
try:
|
||||
from log_registry import LogRegistry
|
||||
registry = LogRegistry(str(_LOG_DIR / "log_registry.toml"))
|
||||
registry.update_auto_whitelist_status(_session_id)
|
||||
except Exception as e:
|
||||
print(f"Warning: Could not update auto-whitelist on close: {e}")
|
||||
|
||||
|
||||
def log_api_hook(method: str, path: str, payload: str):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user