fix: initialize self.config in HermesCLI to fix AttributeError on slash commands
HermesCLI.__init__ never assigned self.config, causing an
AttributeError ('HermesCLI object has no attribute config')
whenever an unrecognized slash command fell through to the
quick_commands check (line 2832). This broke skill slash commands
like /x-thread-creation since the quick_commands lookup runs
before the skill command check.
Set self.config = CLI_CONFIG in __init__, matching the pattern
used by the gateway (run.py:199).
This commit is contained in:
parent
fbfdde496b
commit
f5324f9aa5
1 changed files with 1 additions and 0 deletions
1
cli.py
1
cli.py
|
|
@ -1107,6 +1107,7 @@ class HermesCLI:
|
|||
"""
|
||||
# Initialize Rich console
|
||||
self.console = Console()
|
||||
self.config = CLI_CONFIG
|
||||
self.compact = compact if compact is not None else CLI_CONFIG["display"].get("compact", False)
|
||||
# tool_progress: "off", "new", "all", "verbose" (from config.yaml display section)
|
||||
self.tool_progress_mode = CLI_CONFIG["display"].get("tool_progress", "all")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue