Skip to content

Commit f27c2c4

Browse files
committed
feat: Edit tool parameter prioritize displaying the file path
1 parent 84415bb commit f27c2c4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/session.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,6 +2547,12 @@ ${skillMd}
25472547
return typeof args.explanation === "string" ? args.explanation.trim() : "";
25482548
} else if (toolName === "write") {
25492549
return typeof args.file_path === "string" ? args.file_path.trim() : "";
2550+
} else if (toolName === "edit") {
2551+
const filePath = typeof args.file_path === "string" ? args.file_path.trim() : "";
2552+
if (filePath) {
2553+
return filePath;
2554+
}
2555+
return typeof args.snippet_id === "string" ? args.snippet_id.trim() : "";
25502556
}
25512557

25522558
const firstKey = Object.keys(args)[0];

0 commit comments

Comments
 (0)