Skip to content

Commit 2ad7e19

Browse files
committed
fix(comment-checker): support args.path for OpenCode Write/Edit tools
1 parent d62f1dd commit 2ad7e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/comment-checker/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function createCommentCheckerHooks() {
2828
return
2929
}
3030

31-
const filePath = (output.args.filePath ?? output.args.file_path) as string | undefined
31+
const filePath = (output.args.filePath ?? output.args.file_path ?? output.args.path) as string | undefined
3232
const content = output.args.content as string | undefined
3333

3434
if (!filePath) {

0 commit comments

Comments
 (0)