mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-29 06:31:32 +00:00
fix(tools): keep default-off toolsets disabled
This commit is contained in:
parent
e00d9630c5
commit
1fdf9a730c
2 changed files with 39 additions and 0 deletions
|
|
@ -546,6 +546,10 @@ def _get_platform_tools(
|
|||
ts_tools = set(resolve_toolset(ts_key))
|
||||
if ts_tools and ts_tools.issubset(all_tool_names):
|
||||
enabled_toolsets.add(ts_key)
|
||||
default_off = set(_DEFAULT_OFF_TOOLSETS)
|
||||
if platform in default_off:
|
||||
default_off.remove(platform)
|
||||
enabled_toolsets -= default_off
|
||||
|
||||
# Plugin toolsets: enabled by default unless explicitly disabled.
|
||||
# A plugin toolset is "known" for a platform once `hermes tools`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue