fix(gateway): keep auto_multiplex_migration spelling

Rename DEFAULT_CONFIG to the documented key so the reader, docs, and defaults agree. Do not reintroduce auto_migrate.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
KoNit-K
2026-09-14 16:39:34 +08:00
committed by Teknium
parent 23ef64081c
commit c8a6b3ca94
3 changed files with 6 additions and 1 deletions

View File

@@ -1972,7 +1972,7 @@ DEFAULT_CONFIG = {
# Set to False to stay on per-profile gateways — a durable opt-out that survives updates, so
# the decision is not re-litigated on every release. Only the AUTOMATIC path reads this:
# `hermes gateway migrate --multiplex` is an explicit request and always proceeds.
"auto_migrate": True,
"auto_multiplex_migration": True,
# Route inbound chats of the default profile's bots to another profile
# (gateway/profile_routing.py): [{profile, platform, chat_id|user_id|guild_id|...}].
# Most-specific match wins; only read by the multiplexing default gateway.

View File

@@ -1933,5 +1933,8 @@ def test_gateway_multiplex_keys_are_recognized_config_keys():
from hermes_cli.config import _validate_config_key
from hermes_cli.config_defaults import DEFAULT_CONFIG
assert DEFAULT_CONFIG["gateway"]["multiplex_profiles"] is False
assert DEFAULT_CONFIG["gateway"]["auto_multiplex_migration"] is True
assert "auto_migrate" not in DEFAULT_CONFIG["gateway"]
assert _validate_config_key("gateway.multiplex_profiles") == (True, None)
assert _validate_config_key("gateway.profile_routes") == (True, None)
assert _validate_config_key("gateway.auto_multiplex_migration") == (True, None)

View File

@@ -354,6 +354,8 @@ def test_auto_multiplex_migration_false_opts_out_of_the_update_hook_but_not_the_
(fleet.root / "config.yaml").write_text(
"model:\n default: x\nauto_multiplex_migration: false\n", encoding="utf-8")
assert auto_migration_opted_out(fleet.root) is False
(fleet.root / "config.yaml").write_text("model:\n default: x\n", encoding="utf-8")
assert auto_migration_opted_out(fleet.root) is False
(fleet.root / "config.yaml").write_text(
"model:\n default: x\ngateway:\n auto_multiplex_migration: true\n", encoding="utf-8")
assert auto_migration_opted_out(fleet.root) is False