fix(openclaw): eliminate DOMAIN_STATE HTML comment tags and add clean Telegram output guardrails

This commit is contained in:
Moritz Graf
2026-10-06 19:38:47 +02:00
parent f717a9a2f7
commit 1ffbf3d6b7
7 changed files with 67 additions and 16 deletions
@@ -139,8 +139,7 @@ Subagent specifications, system prompts, tool assignments, and domain guidelines
### 3. Multi-Turn Continuity: Domain Stickiness & Rich State Bridge
To prevent context loss during ongoing step-by-step dialogues (e.g. interactive cooking or workout design):
* **Domain Stickiness**: Follow-up questions on the active topic remain within the specialized subagent domain until an explicit topic shift occurs.
* **Rich State Bridge (`<!-- DOMAIN_STATE -->`)**: Every subagent embeds a compact JSON state comment at the end of its response. The Conductor uses this state to answer trivial micro-checks in < 1s, or feeds it back into the subagent for complex modifications.
* **Persistent Context Continuity**: Follow-up turns are routed within the dedicated subagent topic session using native conversational memory, keeping user-facing messages clean without embedding raw JSON/HTML metadata tags.
### 4. 3-Tier Session Lifecycle (Preventing Unbounded Session Growth)
1. **Conversational Close**: Topic shifts or explicit user completion (*"Danke, das war's"*) reset the active domain pointer.