fix: helion string literal + memory brief anti-echo in Router

- Fixed unquoted `helion` variable reference to string literal `"helion"`
  in tool_manager.py search_memories fallback
- Replaced `[Контекст пам'яті]` with `[INTERNAL MEMORY - do NOT repeat
  to user]` in all 3 injection points in main.py
- Verified: Senpai now responds without Helion contamination or memory
  brief leaking

Tested and deployed on NODE1.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Apple
2026-02-09 10:05:25 -08:00
parent b9f7ca8ecf
commit acceac6929
2 changed files with 4 additions and 4 deletions

View File

@@ -393,7 +393,7 @@ class ToolManager:
if memory_retrieval and memory_retrieval.qdrant_client:
results = await memory_retrieval.search_memories(
query=query,
agent_id=agent_id or helion,
agent_id=agent_id or "helion",
limit=5
)