Skip to content

fix(tools): run post_setup in _reconfigure_provider() for env-var providers - #26642

Closed
EloquentBrush0x wants to merge 1 commit into
NousResearch:mainfrom
EloquentBrush0x:fix/tools-config-reconfigure-post-setup
Closed

fix(tools): run post_setup in _reconfigure_provider() for env-var providers#26642
EloquentBrush0x wants to merge 1 commit into
NousResearch:mainfrom
EloquentBrush0x:fix/tools-config-reconfigure-post-setup

Conversation

@EloquentBrush0x

@EloquentBrush0x EloquentBrush0x commented May 15, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

_configure_provider() calls _run_post_setup() after collecting env vars (line 2286). _reconfigure_provider() — added in the same file — skips this call for providers with both env_vars and post_setup (Browserbase, Browser Use, Firecrawl, Camofox). A user who configures one of these providers via /reconfigure tools gets their API key saved but the agent_browser npm install never runs, breaking the browser tool at runtime.

One-line fix mirroring _configure_provider. Hooks are idempotent so no behaviour change for existing installs.

Related Issue

N/A

Type of Change

  • 🐛 Bug fix

Changes Made

  • hermes_cli/tools_config.py: add _run_post_setup() call in _reconfigure_provider() (+2 lines)
  • tests/hermes_cli/test_tools_config.py: parametrized regression for all four affected providers

How to Test

pytest tests/hermes_cli/test_tools_config.py::test_reconfigure_provider_runs_post_setup_for_env_var_providers -v

Checklist

  • Contributing Guide read | Conventional Commits | No duplicate PR
  • Single logical change | Tests added | Platform: macOS
  • Docs — N/A | Cross-platform — N/A

…viders

_configure_provider() calls _run_post_setup() after collecting env vars
(line 2286). _reconfigure_provider() did not — providers with both
env_vars and post_setup (Browserbase, Browser Use, Firecrawl, Camofox)
skipped the installation step on reconfiguration.

Fix: mirror the _configure_provider() call. post_setup hooks are
idempotent (check before installing), so no behaviour change for users
who already have the dependencies installed.
@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 tool/browser Browser automation (CDP, Playwright) labels May 15, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Merged via #27306 with your authorship preserved via rebase-merge. Commit cc59880ab is on main. Thanks for the parity fix!

@teknium1 teknium1 closed this May 17, 2026
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
Seven74AI pushed a commit to Seven74AI/hermes-agent that referenced this pull request Jun 13, 2026
T02200059 pushed a commit to T02200059/hermes-agent that referenced this pull request Jun 18, 2026
liuchanchen pushed a commit to liuchanchen/hermes-agent that referenced this pull request Jun 23, 2026
donbowman pushed a commit to donbowman/hermes-agent that referenced this pull request Jul 13, 2026
Gravezzz pushed a commit to Gravezzz/hermes-agent that referenced this pull request Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists tool/browser Browser automation (CDP, Playwright) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants