more adjustments

This commit is contained in:
2026-03-12 19:08:51 -04:00
parent 19e7c94c2e
commit 1f8bb58219
14 changed files with 272 additions and 213 deletions

View File

@@ -112,6 +112,11 @@ def close_session() -> None:
except Exception as e:
print(f"Warning: Could not update auto-whitelist on close: {e}")
def reset_session(label: Optional[str] = None) -> None:
"""Closes the current session and opens a new one with the given label."""
close_session()
open_session(label)
def log_api_hook(method: str, path: str, payload: str) -> None:
"""Log an API hook invocation."""
if _api_fh is None: