diff --git a/ai-hub/app/core/orchestration/stream.py b/ai-hub/app/core/orchestration/stream.py index 88f05b3..7eede54 100644 --- a/ai-hub/app/core/orchestration/stream.py +++ b/ai-hub/app/core/orchestration/stream.py @@ -100,6 +100,10 @@ if processed: yield {"type": "content", "content": processed} + def _apply_turn_header(self, text: str) -> str: + """Compatibility shim for old Architect calls. Strips internal markers without adding headers.""" + return self._apply_header_stripping(text) or "" + def _apply_header_stripping(self, text: str) -> Optional[str]: """Strips orchestrator internal markers but does NOT inject its own.""" if not text: return ""