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

+3 -2
View File
@@ -331,14 +331,15 @@ class WhatsAppConnectStore:
from nanobot.bus.queue import MessageBus
from nanobot.channels.whatsapp.runtime import WhatsAppChannel
section = getattr(load_config().channels, "whatsapp", None)
root_config = load_config()
section = getattr(root_config.channels, "whatsapp", None)
if section is not None and hasattr(section, "model_dump"):
config = section.model_dump(mode="json", by_alias=True)
elif isinstance(section, dict):
config = dict(cast(dict[str, Any], section))
else:
config = {}
channel = WhatsAppChannel(config, MessageBus())
channel = WhatsAppChannel(config, MessageBus(), network=root_config.network)
return channel, channel.connect_database_path()
@staticmethod