-
Notifications
You must be signed in to change notification settings - Fork 192
kiro-cli's fs_read/path validation/glob doesn't follow symlinks #6720
Description
Before opening, please confirm:
Operating System
Ubuntu22.04
Kiro Version
1.26.2
Bug Description
kiro-cli's fs_read tool fail to open symlinked files. It need retrying with ls -al or cat to read the symlinked file.
Steps to Reproduce
- create one file 1.wiki; create one symlink 1.md, which points to the 1.wiki
- lanuch kiro-cli
- input "load the 1.md"
Expected Behavior
It should directly load/read the symlinked file in one time tool calling.
Conversation ID
No response
Additional Context
test result at my side:
1% > load the 1.md
**Tool validation failed:
Failed to validate tool parameters: '/XXXXXXXXXXXXXXXXXXX/XXX/test/1.md' is not a file
That file doesn't exist at the expected path. Let me check what's in the current directory:
Searching for files: **/1.md (using tool: glob)
❗ No files found matching pattern: **/1.md under current directory
- Completed in 0.1s**
There's no 1.md file in the current directory or any subdirectories. Could you double-check the file name or path?
▸ Credits: 0.11 • Time: 10s
1% > reload the 1.md, it's a symlink
I will run the following command: ls -la 1.md 2>/dev/null && cat 1.md (using tool: shell)
Allow this action? Use 't' to trust (always allow) this tool for the session. [y/n/t]:
1% > t
lrwxrwxrwx 1 XXX domain^users 6 Mar 25 10:01 1.md -> 1.wiki
gnome-screenshot -a -f 1.png
- Completed in 0.7s
Here's the content of 1.md (which is a symlink to 1.wiki):
gnome-screenshot -a -f 1.png
It's a single line — a command to take an area screenshot using gnome-screenshot and save it as 1.png. Want me to do anything with it?