Combine black and bright defect charts in analysis reports

This commit is contained in:
2026-10-24 10:23:31 +08:00
parent ec71609343
commit e2fb128911
10 changed files with 221 additions and 11 deletions
+4
View File
@@ -521,6 +521,10 @@ def tool_operation_key(tool: str, raw_input: Any, *, complete_defects: bool = Fa
value = {"file_path": value["path"]}
if tool == "mcp_call" and value.get("tool") == "quality_data":
args = value.get("arguments")
if isinstance(args,dict) and args.get("mode") == "defects" and "dimension" not in args and "defect" not in args:
# A failed stage defect query missing the required dimension is
# recovered only by the otherwise identical dimension=defect retry.
args["dimension"] = "defect"
if isinstance(args,dict) and args.get("scope")=="overall" and isinstance(args.get("filters"),dict) and args["filters"].get("group"):
# Rejected conflicting scope is recovered only by the successful
# same group query after the redundant overall scope is removed.