Skip to content
Python

fix(sdk): keep model output out of the reconcile parse-failure warning

alvinfei791285f4c9be
diff --git a/hy_memory/agent/reconciler.py b/hy_memory/agent/reconciler.py
index bf55cd4..6c67cf0 100644
--- a/hy_memory/agent/reconciler.py
+++ b/hy_memory/agent/reconciler.py
@@ -1529,8 +1529,8 @@ class MemoryReconciler:
error_code = "LLM_UNAVAILABLE"
elif raw_response.strip():
error_msg = (
- f"RECONCILE JSON parse failed after {_n_attempts} attempts: "
- f"{raw_response[:200] if _log_llm_content_enabled() else '<redacted>'}"
+ f"RECONCILE JSON parse failed after {_n_attempts} attempts "
+ f"({len(raw_response)} chars)"
)
error_code = "JSON_PARSE_FAILED"
else: