feat(network): centralize proxy settings and add MCP routing (NAN-315) (#6372)
* feat(network): share proxy settings across features and MCP (NAN-315) * fix(network): address shared proxy review regressions * test(network): align rebased OAuth fixtures with runtime admission * fix(webui): configure shared proxy without leaving connection drafts * feat(webui): add optional shared proxy authentication editor * fix(webui): align proxy save tests and loading skeleton
This commit is contained in:
1 parent
872a83340d
commit
084b6bb394
181 files changed
+3740
-807
No files matched your search
@@ -337,7 +337,7 @@ def test_web_search_tool_create():
|
||||
mock_config = MagicMock()
|
||||
mock_config.web.enable = True
|
||||
mock_config.web.search = MagicMock()
|
||||
mock_config.web.proxy = None
|
||||
mock_config.web.use_proxy = False
|
||||
mock_config.web.user_agent = None
|
||||
ctx = ToolContext(config=mock_config, workspace="/tmp")
|
||||
tool = WebSearchTool.create(ctx)
|
||||
@@ -349,7 +349,7 @@ def test_web_fetch_tool_create():
|
||||
mock_config = MagicMock()
|
||||
mock_config.web.enable = True
|
||||
mock_config.web.fetch = MagicMock()
|
||||
mock_config.web.proxy = None
|
||||
mock_config.web.use_proxy = False
|
||||
mock_config.web.user_agent = None
|
||||
ctx = ToolContext(config=mock_config, workspace="/tmp")
|
||||
tool = WebFetchTool.create(ctx)
|
||||
@@ -442,7 +442,7 @@ def test_loader_registers_builtin_tools():
|
||||
mock_config.web.enable = True
|
||||
mock_config.web.search = MagicMock()
|
||||
mock_config.web.fetch = MagicMock()
|
||||
mock_config.web.proxy = None
|
||||
mock_config.web.use_proxy = False
|
||||
mock_config.web.user_agent = None
|
||||
mock_config.image_generation.enabled = False
|
||||
mock_config.my.enable = True
|
||||
|
||||
Reference in new issue
Block a user