fix(harness): infer mode honors CLI --questions over manifest

This commit is contained in:
2026-07-11 07:45:33 -04:00
parent 735471df3c
commit 307c64c388
+3 -1
View File
@@ -553,7 +553,9 @@ class Runner:
from app.harness.log import HarnessLog
from app.question_gen import load_benchmark
questions = load_benchmark(self._paths.questions_dir)
# CLI --questions 优先于 manifest 中的 questionsinfer 不改 manifest
questions_dir = Path(self._config.store_dir) / "questions" / self._config.questions
questions = load_benchmark(questions_dir)
if task_types:
allowed = set(task_types)
questions = [q for q in questions if q.task_type in allowed]