fix(tools): preserve auxiliary config model precedence - #39830
Conversation
|
Thanks for flagging. I do not think this is fully redundant with #24875/#24872. The overlap is limited to the vision side. #14693 is specifically about stale tool-layer AUXILIARY_*_MODEL bridge env vars overriding current auxiliary..model config, and its scope includes browser extraction / web_extract, not just vision_analyze and browser_vision. Patch comparison:
Recommendation: keep #39830 open as the PR covering the full #14693 scope. If maintainers prefer #24875's vision approach, the web_extract/browser-extraction coverage from #39830 should still be kept or cherry-picked before closing it as redundant. |
|
Thanks for isolating the tool-layer precedence issue. The browser portion remains relevant: Problems
Suggested changes
Automated hermes-sweeper review. |
|
Closing the broad stale branch because most of its scope was superseded by merged #57651 and current main removed or changed several targeted paths. The remaining browser-only precedence gap should be independently reproduced and, if still live, submitted as a fresh narrow patch. |
Summary
AUXILIARY_VISION_MODEL/AUXILIARY_WEB_EXTRACT_MODELbridge env vars from overriding configuredauxiliary.<task>.modelvaluesFixes #14693
Notes on related PRs
There are older/open vision-routing PRs in this area. This change is intentionally focused on the stale env bridge precedence reported in #14693 and also covers the web-extract path (
tools/web_tools.py) soauxiliary.web_extract.modelis not defeated byAUXILIARY_WEB_EXTRACT_MODEL.Tests
scripts/run_tests.sh tests/tools/test_auxiliary_tool_model_precedence.py tests/tools/test_vision_tools.py tests/tools/test_web_tools_config.py tests/tools/test_browser_content_none_guard.py.venv/bin/python -m py_compile tools/browser_tool.py tools/vision_tools.py tools/web_tools.py tests/tools/test_auxiliary_tool_model_precedence.pygit diff --checkVerification details
The new regression tests cover: