From d04226431047c5343615cd884d1fe505a74b658f Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 29 Jul 2026 01:49:23 -0700 Subject: [PATCH] fix: guard _voice_tts_done access for bare-constructed test CLIs (getattr pattern, skill pitfall #17) --- cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli.py b/cli.py index 8e4ae1b23e5..2017e6b9f26 100644 --- a/cli.py +++ b/cli.py @@ -12006,9 +12006,10 @@ class HermesCLI(CLIAgentSetupMixin, CLICommandsMixin, CLIBillingMixin): # the user. The stop phrase and barge-in still work during the # hold (they run on their own paths above). stop_continuous_restart = False + _tts_done = getattr(self, "_voice_tts_done", None) _activity_hold = bool( getattr(self, "_agent_running", False) - or not self._voice_tts_done.is_set() + or (_tts_done is not None and not _tts_done.is_set()) ) if not submitted: if _activity_hold: