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:
chengyongru authored and GitHub committed 2026-10-22 15:49:27 +08:00
1 parent 872a83340d
commit 084b6bb394
181 files changed
+3740 -807

No files matched your search

@@ -456,7 +456,7 @@ export function useModelSettingsActions({
if (provider.provider_api_configurable) update.api = providerForm.api;
}
for (const field of provider.advanced_fields ?? []) {
if (field === "proxy") update.proxy = providerForm.proxy.trim();
if (field === "use_proxy") update.use_proxy = providerForm.useProxy;
if (field === "extra_headers") {
update.extraHeaders = providerForm.extraHeaders.trim();
}
@@ -500,7 +500,7 @@ export function useModelSettingsActions({
apiKey: draft.apiKey.trim() || undefined,
apiBase: draft.apiBase.trim(),
...(settings?.provider_api_configuration_supported ? { api: draft.api } : {}),
proxy: draft.proxy.trim(),
use_proxy: draft.useProxy,
extraHeaders: draft.extraHeaders.trim(),
extraBody: draft.extraBody.trim(),
extraQuery: draft.extraQuery.trim(),