mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fix: guard _voice_tts_done access for bare-constructed test CLIs (getattr pattern, skill pitfall #17)
This commit is contained in:
parent
b0734b0aa5
commit
d042264310
1 changed files with 2 additions and 1 deletions
3
cli.py
3
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue