emma-hermes/gateway
Teknium 5f1991bf6b
fix(gateway): import PairingStore in _start_secondary_profile_adapters (#65118)
The served-profiles block in _start_secondary_profile_adapters references
PairingStore, but the class's only import in gateway/run.py is method-local
inside __init__ — so the reference raised NameError at runtime, silently
swallowed by the enclosing try/except ('could not record served_profiles').
Result: multiplexing gateways never created per-profile pairing stores, and
authz pairing checks for secondary profiles fell through to the global
whitelist. Also masked the served_profiles runtime-status write.

One-line fix (local import alongside write_runtime_status) + regression
tests that drive the real method and assert the stores materialize,
verified red without the import and green with it.

Surfaced during the profile-routing sweep by @CocaKova's PR #61689, which
included the same fix as part of a larger feature.
2026-07-15 12:11:16 -07:00
..
assets
builtin_hooks
platforms fix(gateway): gate profile routing on multiplex_profiles + widen batch-key routing to all adapters 2026-07-15 09:50:05 -07:00
relay feat(relay): consume channel context from the connector (#64649) 2026-07-15 09:31:34 +10:00
__init__.py
authz_mixin.py
cgroup_cleanup.py
channel_directory.py
code_skew.py
config.py fix(gateway): gate profile routing on multiplex_profiles + widen batch-key routing to all adapters 2026-07-15 09:50:05 -07:00
cwd_placeholder.py
dead_targets.py
delivery.py
display_config.py
drain_control.py
hooks.py
kanban_watchers.py
memory_monitor.py
message_timestamps.py
mirror.py
pairing.py
platform_registry.py
profile_routing.py fix(gateway): profile routing — conjunctive matching + universal gateway_runner 2026-07-15 09:50:05 -07:00
readiness.py fix(gateway): ground readiness in live runtime state 2026-07-11 08:42:21 -07:00
response_filters.py
restart.py
restart_loop_guard.py
rich_sent_store.py
run.py fix(gateway): import PairingStore in _start_secondary_profile_adapters (#65118) 2026-07-15 12:11:16 -07:00
runtime_footer.py
scale_to_zero.py
session.py fix(gateway): sanitize sender-name prefix in shared multi-user sessions 2026-07-15 23:48:34 +05:30
session_context.py
shutdown_forensics.py
slash_access.py
slash_commands.py fix(slack): clear stuck assistant status on /stop and via explicit metadata 2026-07-14 21:31:32 -07:00
status.py
status_phrases.py
sticker_cache.py
stream_consumer.py
stream_dispatch.py
stream_events.py
whatsapp_identity.py