The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore(health): label the moved handlers main's now-blocking BLE001 rule flags
Teknium7160993d0a36
diff --git a/gateway/run_inbound_hooks.py b/gateway/run_inbound_hooks.pyindex 398521b43d4..cb939b1813e 100644--- a/gateway/run_inbound_hooks.py+++ b/gateway/run_inbound_hooks.py@@ -50,7 +50,7 @@ class GatewayInboundHooksMixin:# getattr: bare-runner tests build GatewayRunner via object.__new__ without __init__.session_store=getattr(self, "session_store", None),)- except Exception as _hook_exc:+ except Exception as _hook_exc: # health: allow BLE001 -- moved unchanged from run_inbound.py (main has the same handler): a plugin hook must never stop dispatchlogger.warning("pre_gateway_dispatch invocation failed: %s", _hook_exc)_hook_results = []@@ -153,9 +153,9 @@ class GatewayInboundHooksMixin:from agent.redact import redact_sensitive_textoutput = redact_sensitive_text(output)return output or t("gateway.quick_command.no_output")- except asyncio.TimeoutError:+ except TimeoutError:return t("gateway.quick_command.timed_out")- except Exception as e:+ except Exception as e: # health: allow BLE001 -- moved unchanged from run_inbound.py (main has the same handler): an operator quick command's failure is its replyreturn t("gateway.quick_command.error", error=e)async def _hm_dispatch_quick_and_plugin_commands(diff --git a/gateway/run_turn_progress.py b/gateway/run_turn_progress.pyindex 980bee51fcb..b782a928b32 100644--- a/gateway/run_turn_progress.py+++ b/gateway/run_turn_progress.py@@ -553,7 +553,7 @@ class GatewayTurnProgressMixin:len_fn = adapter.message_len_fn if isinstance(adapter, BasePlatformAdapter) else lentry:raw_limit = int(getattr(adapter, "MAX_MESSAGE_LENGTH", 4000) or 4000)- except Exception:+ except Exception: # health: allow BLE001 -- moved unchanged from run_turn_runner.py (main has the same handler): a plugin adapter's odd MAX_MESSAGE_LENGTH falls back to 4000raw_limit = 4000# Per-chat resolution (relay adapter fronting N platforms): cap and length unit follow the# chat's underlying platform; native adapters return their scalar/property unchanged.