fix(tools): scope google chat toolset to platform - #36027
Conversation
0573b01 to
8a4c717
Compare
e52ac5d to
c8f440b
Compare
teknium1
left a comment
There was a problem hiding this comment.
Thanks for the focused platform-scope work. The current implementation does not expose the google_chat value as a plugin toolset: plugins/platforms/google_chat/adapter.py:3290 only calls ctx.register_platform(...), while hermes_cli/plugins.py:2422-2462 derives plugin toolsets solely from tools registered through register_tool.
Problems
- The new
_TOOLSET_PLATFORM_RESTRICTIONS["google_chat"]entry has no current runtime target. The proposed skip inhermes_cli/tools_config.pyonly iteratesplugin_ts_keys, which cannot contain Google Chat without registered plugin tools. - The new tests validate the generic restriction helper and save filter, but do not cover an actual Google Chat toolset reaching
_get_platform_tools().
Suggested changes
- Defer this scope entry until a Google Chat-specific model toolset exists, and add an integration-level resolution test alongside that toolset.
Automated hermes-sweeper review.
| _TOOLSET_PLATFORM_RESTRICTIONS: Dict[str, Set[str]] = { | ||
| "discord": {"discord"}, | ||
| "discord_admin": {"discord"}, | ||
| "google_chat": {"google_chat"}, |
There was a problem hiding this comment.
google_chat is currently a platform adapter, not a plugin toolset: plugins/platforms/google_chat/adapter.py:3290 calls register_platform, and get_plugin_toolsets() derives entries only from registered tools (hermes_cli/plugins.py:2422-2462). This restriction has no runtime target until Google Chat-specific model tools are registered.
|
Thanks for the PR — closing this one on a wrong-premise basis after verification against main. There is no The generic "skip restricted plugin toolsets in (Your other Google Chat PRs are being reviewed on their merits separately.) |
What does this PR do?
Scopes the bundled
google_chatplugin toolset to the Google Chat platform so it does not appear as an opt-in toolset for unrelated platforms.Related Issue
N/A — small platform-toolset hygiene fix found while preparing Google Chat plugin work.
Type of Change
Changes Made
hermes_cli/tools_config.py: addgoogle_chatto platform-scoped toolset restrictions.hermes_cli/tools_config.py: skip restricted plugin toolsets while resolving default platform tools.tests/hermes_cli/test_tools_config.py: cover Google Chat toolset visibility and save-time stripping on non-Google-Chat platforms.How to Test
scripts/run_tests.sh tests/hermes_cli/test_tools_config.pypython /root/.codex/skills/hermes-upstream-pr/scripts/pr_preflight.py --base upstream/mainChecklist
Code
Documentation & Housekeeping
cli-config.yaml.exampleupdate N/A.CONTRIBUTING.md/AGENTS.mdupdate N/A.Related PRs
Screenshots / Logs
Validation passed locally: