From 326d5febe58a551f7f9f3d46a07dd787a1255f8d Mon Sep 17 00:00:00 2001 From: Chen Chia Yang Date: Thu, 9 Apr 2026 12:33:34 +0800 Subject: [PATCH] fix: also strip tags during streaming in cli.py --- cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.py b/cli.py index fdf625481..09cb47e38 100644 --- a/cli.py +++ b/cli.py @@ -2420,8 +2420,8 @@ class HermesCLI: # suppress them during streaming too — unless show_reasoning is # enabled, in which case we route the inner content to the # reasoning display box instead of discarding it. - _OPEN_TAGS = ("", "", "", "", "") - _CLOSE_TAGS = ("", "", "", "", "") + _OPEN_TAGS = ("", "", "", "", "", "") + _CLOSE_TAGS = ("", "", "", "", "", "") # Append to a pre-filter buffer first self._stream_prefilt = getattr(self, "_stream_prefilt", "") + text