fix(ui): name the object arguments at two new call sites to bring the inline-object lint budget back under its ceiling

This commit is contained in:
mateo-berri 2026-09-04 19:47:31 -07:00
parent 2151dcbd73
commit c27f1e348d
3 changed files with 7 additions and 5 deletions

View file

@ -3,7 +3,7 @@
"no-console": { "max": 12, "target": 0 },
"complexity": { "max": 140, "target": 80 },
"max-depth": { "max": 70, "target": 30 },
"local/no-large-inline-object-arg": { "max": 555, "target": 300 },
"local/no-large-inline-object-arg": { "max": 554, "target": 300 },
"local/no-long-condition-chain": { "max": 265, "target": 120 },
"testing-library/no-container": { "max": 133, "target": 50 },
"testing-library/no-node-access": { "max": 716, "target": 500 },

View file

@ -315,12 +315,13 @@ const ClassificationMethodConfig: React.FC<ClassificationMethodConfigProps> = ({
timeout_ms: value.classifier_llm_config?.timeout_ms ?? DEFAULT_CLASSIFIER_TIMEOUT_MS,
classification_rubric: selectedRubric,
};
onChange({
const nextValue: ComplexityRouterConfigValue = {
...value,
...(selectedRubric && { classifier_llm_config: rubricConfig }),
classification_prompt: classificationPrompt,
classification_examples: classificationExamples,
});
};
onChange(nextValue);
};
const handleClassifierModelChange = (model: string) => {

View file

@ -1170,12 +1170,13 @@ describe("buildComplexityRouterConfig stall escalation", () => {
});
it("emits the toggle and both knobs when it is on", () => {
const config = buildComplexityRouterConfig({
const params: BuildComplexityRouterConfigParams = {
...baseParams,
stallEscalationEnabled: true,
stallEscalationWindow: 8,
stallEscalationRepeatThreshold: 4,
});
};
const config = buildComplexityRouterConfig(params);
expect(config.stall_escalation_enabled).toBe(true);
expect(config.stall_escalation_window).toBe(8);
expect(config.stall_escalation_repeat_threshold).toBe(4);