We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84415bb commit f27c2c4Copy full SHA for f27c2c4
1 file changed
src/session.ts
@@ -2547,6 +2547,12 @@ ${skillMd}
2547
return typeof args.explanation === "string" ? args.explanation.trim() : "";
2548
} else if (toolName === "write") {
2549
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() : "";
2556
}
2557
2558
const firstKey = Object.keys(args)[0];
0 commit comments