Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(llm_tools): fix permission checking to use relative path (#1473)
The has_permission_to_access function was incorrectly using absolute paths when checking against gitignore patterns. This could cause issues when the binary name matches the project root directory name, particularly in Go projects. Changes: - Extract relative path from absolute path by removing project root prefix - Use relative path for gitignore pattern matching - Add comments explaining the path handling logic Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
- Loading branch information