diff --git a/llm_team_ui.py b/llm_team_ui.py index 74af0c0..94f9aa8 100644 --- a/llm_team_ui.py +++ b/llm_team_ui.py @@ -10780,6 +10780,11 @@ def run_team(): return jsonify({"error": "Request body required"}), 400 mode = config.get("mode", "") + # Alias: external callers (e.g. lakehouse observer.ts) escalate to the underscored + # `code_review`, but the canonical registered mode is `codereview` — normalize so + # those calls dispatch via RUNNERS instead of silently failing the 400 below. + if mode == "code_review": + mode = "codereview" if not mode: return jsonify({"error": "Mode is required"}), 400