Remove OpenClaw references
This commit is contained in:
@@ -127,7 +127,7 @@ class ContextHandler:
|
|||||||
}
|
}
|
||||||
|
|
||||||
# === LAYER 1: System Prompt (pass through unchanged) ===
|
# === 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 = ""
|
system_content = ""
|
||||||
if incoming_system:
|
if incoming_system:
|
||||||
system_content = incoming_system.get("content", "")
|
system_content = incoming_system.get("content", "")
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ def clean_message_content(content: str) -> str:
|
|||||||
if not content:
|
if not content:
|
||||||
return content
|
return content
|
||||||
|
|
||||||
# Check for OpenJarvis/OpenClaw wrapper
|
# Check for memory context wrapper
|
||||||
wrapper_match = re.search(
|
wrapper_match = re.search(
|
||||||
r'\[Memory context\].*?- user_msg:\s*(.+?)(?:\n\n|\Z)',
|
r'\[Memory context\].*?- user_msg:\s*(.+?)(?:\n\n|\Z)',
|
||||||
content, re.DOTALL
|
content, re.DOTALL
|
||||||
|
|||||||
Reference in New Issue
Block a user