Skip to content

Commit cb097e4

Browse files
authored
Merge pull request #54 from JoeProAI/fix/task10-read-tool-compatibility
2 parents 05727c1 + 62c4ef2 commit cb097e4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tasks/task_10_workflow.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,13 @@ def grade(transcript: list, workspace_path: str) -> dict:
9999
if item.get("type") == "toolCall":
100100
tool_name = item.get("name", "")
101101
params = item.get("params", {})
102-
if tool_name in ["read_file", "readFile"]:
102+
if tool_name.lower() in ["read_file", "readfile", "read"]:
103+
# Support multiple param formats across different agents:
104+
# - files: ["config.json"] (Cursor, Windsurf)
105+
# - path/file_path: "config.json" (OpenClaw, Claude Code)
103106
files = params.get("files", [])
104-
if any("config.json" in str(f) for f in files):
107+
path_val = str(params.get("path", params.get("file_path", "")))
108+
if any("config.json" in str(f) for f in files) or "config.json" in path_val:
105109
read_config = True
106110
break
107111

0 commit comments

Comments
 (0)