fix(modes): accept code_review as alias for codereview #5

Closed
profit wants to merge 2 commits from fix/code-review-mode-alias into main

View File

@ -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