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

2 Commits

Author SHA1 Message Date
b8726d03b6 Merge branch 'main' into fix/code-review-mode-alias 2026-06-21 04:00:10 +00:00
root
5625df924f fix(modes): accept code_review as alias for codereview
External callers (lakehouse observer.ts) escalate to /api/run with mode
"code_review" (underscored), but the canonical registered mode is "codereview",
so those calls hit the unknown-mode 400 and silently dropped. Normalize the alias
right after reading the mode so it validates and dispatches via RUNNERS.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 22:47:07 -05:00