feat: support batch repetition and selective case import
This commit is contained in:
1 parent
df66897ff4
commit
4d6560dbd4
16 files changed
+296
-37
No files matched your search
@@ -189,3 +189,11 @@ def case_title(case: dict) -> str:
|
||||
case_id = str(case.get("case_id") or "").strip()
|
||||
name = str(case.get("name") or "").strip()
|
||||
return " ".join(part for part in (case_id, name) if part)
|
||||
|
||||
|
||||
def execution_title(job: dict) -> str:
|
||||
"""Distinguish repeated executions without altering the original case or prompt."""
|
||||
title = case_title(job.get("case") or {})
|
||||
if job.get("repeat_count", 1) > 1:
|
||||
title += f" · 第 {job['iteration']} / {job['repeat_count']} 轮"
|
||||
return title
|
||||
Reference in new issue
Block a user