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

_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.
This commit is contained in:
EloquentBrush0x
2026-05-16 02:33:35 +03:00
committed by Teknium
parent ad1aa1a037
commit a9ba636d53
2 changed files with 30 additions and 0 deletions

View File

@@ -2599,6 +2599,9 @@ def _reconfigure_provider(provider: dict, config: dict):
else:
_print_info(" Kept current")
if provider.get("post_setup"):
_run_post_setup(provider["post_setup"])
# Imagegen backends prompt for model selection on reconfig too.
plugin_name = provider.get("image_gen_plugin_name")
if plugin_name: