fixing regresssions

This commit is contained in:
2026-03-06 20:12:35 -05:00
parent 0e9f84f026
commit 4c92817928
6 changed files with 423 additions and 167 deletions

View File

@@ -134,7 +134,9 @@ def _get_combined_system_prompt() -> str:
return f"{_SYSTEM_PROMPT}\n\n[USER SYSTEM PROMPT]\n{_custom_system_prompt}"
return _SYSTEM_PROMPT
_comms_log: list[dict[str, Any]] = []
from collections import deque
_comms_log: deque[dict[str, Any]] = deque(maxlen=1000)
COMMS_CLAMP_CHARS: int = 300
@@ -147,6 +149,7 @@ def _append_comms(direction: str, kind: str, payload: dict[str, Any]) -> None:
"model": _model,
"payload": payload,
"source_tier": get_current_tier(),
"local_ts": time.time(),
}
_comms_log.append(entry)
if comms_log_callback is not None: