Skip to content

fix(plugins): include platforms/ namespace in bundled platform plugin keys#28179

Open
outsourc-e wants to merge 1 commit into
NousResearch:mainfrom
outsourc-e:fix/issue-27548-platform-plugin-keys
Open

fix(plugins): include platforms/ namespace in bundled platform plugin keys#28179
outsourc-e wants to merge 1 commit into
NousResearch:mainfrom
outsourc-e:fix/issue-27548-platform-plugin-keys

Conversation

@outsourc-e

Copy link
Copy Markdown
Contributor

Clean replacement for #28160.\n\nWhy:\n- #28160 is non-mergeable/conflicting against current main\n- this branch reapplies the same fix cleanly on top of current upstream/main\n\nWhat it does:\n- scans bundled plugins/platforms/* with prefix='platforms'\n- makes bundled platform plugin keys match canonical namespaced config keys like platforms/teams\n- keeps existing bundled plugin logging intact\n\nVerification:\n- scripts/run_tests.sh tests/hermes_cli/test_plugins.py\n- 73 passed\n\nIssue:\n- closes #27548

… keys

Bundled gateway platform plugins under plugins/platforms/<name>/ were
discovered with keys derived from the manifest name (e.g. teams-platform)
instead of the path-derived namespaced key (e.g. platforms/teams).

This broke config entries in plugins.enabled / plugins.disabled that use
canonical namespaced keys, because the discovery key did not match.

Pass prefix='platforms' to _scan_directory_level() when scanning the
platforms directory so keys are computed as platforms/<dir_name>.

Closes NousResearch#27548
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/plugins Plugin system and bundled plugins labels May 18, 2026

@BoardJames-Bot BoardJames-Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed by Hermes. Platform plugin scan now preserves the platforms/ namespace while leaving flat bundled plugin keys alone; focused plugin suite passed locally (73 passed in tests/hermes_cli/test_plugins.py). No blockers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Platform plugin discovery drops platforms/ namespace from keys

4 participants