The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(gateway): hoist webhook recovery import out of the authority loop
teknium19d552c1374fd
diff --git a/gateway/run_runtime.py b/gateway/run_runtime.pyindex 1c01ad15946..e47609f90e7 100644--- a/gateway/run_runtime.py+++ b/gateway/run_runtime.py@@ -93,12 +93,12 @@ async def recover_gateway_native_sessions(runner):from gateway.session_hosted_service import ensure_hosted_serviceawait ensure_hosted_service(runner)from gateway.session_local_recovery import recover_local_sessions+ from gateway.platforms.webhook_ingress import recover_webhook_finalizationslogger = logging.getLogger(__name__)results = {}for authority in authorities:with owner_scope(authority):recover_local_sessions(authority, schedule=True)- from gateway.platforms.webhook_ingress import recover_webhook_finalizationsawait recover_webhook_finalizations(authority)pending = {row['target_session_id'] for row in authority.db._read_all("SELECT DISTINCT target_session_id FROM session_admissions WHERE status IN ('queued','unknown')")}