Files
OmniRoute/tests
Egor 0be4243d2e fix(combos): normalize hand-written model shapes + survive malformed JSON
Root cause (reproduced by tests): combo steps edited by an agent in text/SQLite
format used field names the normalizer didn't recognize, so every step was
dropped and the combo became empty in the WebUI builder.

- steps.ts: extractModelField() accepts model/target/name/modelName variants,
  used by both getComboStepTarget and normalizeComboStep (fixes {name,provider}
  and legacy {id,target,weight} shapes)
- combos.ts: withSortOrder/parseComboRow now return null on malformed stored
  JSON instead of throwing, so the WebUI combo list never crashes on a broken
  row
- new test: combo-editability-paths.test.ts (7 cases covering baseline, SQLite
  INSERT, API text-edit, legacy shapes, malformed JSON)
2026-07-31 09:22:56 +03:00
..
2026-07-29 15:18:55 -03:00
2026-07-29 15:18:55 -03:00
2026-07-29 15:18:55 -03:00
2026-07-29 15:18:55 -03:00
2026-07-29 15:18:55 -03:00
2026-07-29 15:18:55 -03:00
2026-07-29 15:18:55 -03:00
2026-07-29 15:18:55 -03:00
2026-07-29 15:18:55 -03:00