Skip to content

fix(setup): recognize gateway-managed tools#13327

Open
sgaofen wants to merge 1 commit into
NousResearch:mainfrom
sgaofen:codex/fix-13301-setup-gateway-tools
Open

fix(setup): recognize gateway-managed tools#13327
sgaofen wants to merge 1 commit into
NousResearch:mainfrom
sgaofen:codex/fix-13301-setup-gateway-tools

Conversation

@sgaofen

@sgaofen sgaofen commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Root Cause

hermes setup only looked for direct provider API keys such as FIRECRAWL_API_KEY and BROWSERBASE_API_KEY when deciding whether the tools section was configured. Gateway-managed tools persist intent in config via use_gateway: true, so they were incorrectly reported as unconfigured.

Tests

  • uv run --frozen --python 3.11 --extra dev pytest -o addopts='' tests/hermes_cli/test_setup.py -q (20 passed)
  • git diff --check -- hermes_cli/setup.py tests/hermes_cli/test_setup.py

@sgaofen sgaofen force-pushed the codex/fix-13301-setup-gateway-tools branch from 0215b80 to 534aee9 Compare April 21, 2026 05:33
@sgaofen

sgaofen commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

Rebased this onto current main and reran the targeted setup tests locally: .venv/bin/python -m pytest tests/hermes_cli/test_setup.py -q -> 20 passed.

One note on the Supply Chain Audit failure: this PR intentionally touches hermes_cli/setup.py, which is Hermes setup-wizard code, not a packaging install hook. The current audit rule flags any path ending in setup.py, so this appears to be a filename-based false positive that needs maintainer review rather than a hidden install-time execution path.

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard area/config Config system, migrations, profiles labels Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: hermes setup shows "not configured" for gateway-managed tools even when use_gateway=true

2 participants