mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-14 02:42:24 +03:00
* fix(combos): send null to clear an agent feature instead of omitting it PUT /api/combos/[id] merges its body over the stored record, so an omitted field means "leave unchanged". The combos editor deleted a cleared agent feature from the payload, so unchecking context cache protection -- or emptying the system message or the tool filter -- never persisted: the old value survived the merge and the editor reopened with the toggle still on. updateCombo already deletes any key explicitly set to null, which is how description and context_length are cleared in the same save handler. Use the same shape for the three agent fields, and make them nullable in updateComboSchema so the null survives validation. The clearing logic moves into comboAgentFeatures.ts so it can be tested directly, matching comboQuotaOnlyFallback.ts next to it. Fixes #12158 * chore(changelog): point the fragment at the real PR number