diff --git a/app/context_handler.py b/app/context_handler.py index 8afd6d8..2c5aa62 100644 --- a/app/context_handler.py +++ b/app/context_handler.py @@ -127,7 +127,7 @@ class ContextHandler: } # === LAYER 1: System Prompt (pass through unchanged) === - # DO NOT truncate - preserve OpenClaw's system prompt entirely + # DO NOT truncate - preserve system prompt entirely system_content = "" if incoming_system: system_content = incoming_system.get("content", "") diff --git a/app/proxy_handler.py b/app/proxy_handler.py index 33bc7c3..357dd7d 100644 --- a/app/proxy_handler.py +++ b/app/proxy_handler.py @@ -23,7 +23,7 @@ def clean_message_content(content: str) -> str: if not content: return content - # Check for OpenJarvis/OpenClaw wrapper + # Check for memory context wrapper wrapper_match = re.search( r'\[Memory context\].*?- user_msg:\s*(.+?)(?:\n\n|\Z)', content, re.DOTALL