chore(conductor): Mark track 'Curate Provider Registries' as complete. Includes critical fixes for RecursionError, NoneType Hook API responses, and plurality mismatches.

This commit is contained in:
2026-05-08 22:01:15 -04:00
parent b89abb2670
commit 9f18497786
15 changed files with 97 additions and 89 deletions
+8 -7
View File
@@ -119,11 +119,15 @@ def set_current_tier(tier: Optional[str]) -> None:
_local_storage.current_tier = tier
def get_comms_log_callback() -> Optional[Callable[[dict[str, Any]], None]]:
"""Returns the comms log callback from thread-local storage."""
return getattr(_local_storage, "comms_log_callback", None)
"""Returns the comms log callback (thread-local with global fallback)."""
tl_cb = getattr(_local_storage, "comms_log_callback", None)
if tl_cb: return tl_cb
return comms_log_callback
def set_comms_log_callback(cb: Optional[Callable[[dict[str, Any]], None]]) -> None:
"""Sets the comms log callback in thread-local storage."""
"""Sets the comms log callback (both global and thread-local)."""
global comms_log_callback
comms_log_callback = cb
_local_storage.comms_log_callback = cb
# Increased to allow thorough code exploration before forcing a summary
@@ -1186,8 +1190,6 @@ def _send_gemini_cli(md_content: str, user_message: str, base_dir: str,
stream_callback: Optional[Callable[[str], None]] = None,
patch_callback: Optional[Callable[[str, str], Optional[str]]] = None) -> str:
global _gemini_cli_adapter
sys.stderr.write(f"[DEBUG] _send_gemini_cli running in module {__name__}, adapter is {_gemini_cli_adapter}\n")
sys.stderr.flush()
try:
if _gemini_cli_adapter is None:
_gemini_cli_adapter = GeminiCliAdapter(binary_path="gemini")
@@ -2321,8 +2323,7 @@ if os.environ.get("SLOP_TOOL_PRESET"):
try:
set_tool_preset(os.environ["SLOP_TOOL_PRESET"])
except Exception as _e:
sys.stderr.write(f"[DEBUG] Failed to auto-set tool preset from env: {_e}\n")
sys.stderr.flush()
pass
def get_history_bleed_stats(md_content: Optional[str] = None) -> dict[str, Any]:
if _provider == "anthropic":