You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have run q doctor in the affected terminal session
I have run q restart and replicated the issue again
Operating system
MacOS
Expected behaviour
The fs_write tool correctly displays the diff requested by the model to accept or deny.
Actual behaviour
fs_write returns the error:
Amazon Q is having trouble responding right now:
0: failed to print tool, `fs_write`: No such file or directory (os error 2)
Location:
crates/chat-cli/src/cli/chat/mod.rs:1007
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
when it tries to display the diff generated by the model. I ran q chat -vvv and saw that the model returned valid-looking output so I expect it's something client-side with how the tool call is being processed.
Steps to reproduce
Here's the chat log, I repeated this with a couple different files in my home directory and they all behaved the same when I used ~/ in the path.
$ q chat
⚠ amzn_mcp has the following warning:
The following tool names are changed:
- amzn_mcp___slack-send-message -> amzn_mcp___slacksendmessage
✓ 1 of 1 mcp servers initialized.
⢠⣶⣶⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣶⣿⣿⣿⣶⣦⡀⠀
⠀⠀⠀⣾⡿⢻⣿⡆⠀⠀⠀⢀⣄⡄⢀⣠⣤⣤⡀⢀⣠⣤⣤⡀⠀⠀⢀⣠⣤⣤⣤⣄⠀⠀⢀⣤⣤⣤⣤⣤⣤⡀⠀⠀⣀⣤⣤⣤⣀⠀⠀⠀⢠⣤⡀⣀⣤⣤⣄⡀⠀⠀⠀⠀⠀⠀⢠⣿⣿⠋⠀⠀⠀⠙⣿⣿⡆
⠀⠀⣼⣿⠇⠀⣿⣿⡄⠀⠀⢸⣿⣿⠛⠉⠻⣿⣿⠛⠉⠛⣿⣿⠀⠀⠘⠛⠉⠉⠻⣿⣧⠀⠈⠛⠛⠛⣻⣿⡿⠀⢀⣾⣿⠛⠉⠻⣿⣷⡀⠀⢸⣿⡟⠛⠉⢻⣿⣷⠀⠀⠀⠀⠀⠀⣼⣿⡏⠀⠀⠀⠀⠀⢸⣿⣿
⠀⢰⣿⣿⣤⣤⣼⣿⣷⠀⠀⢸⣿⣿⠀⠀⠀⣿⣿⠀⠀⠀⣿⣿⠀⠀⢀⣴⣶⣶⣶⣿⣿⠀⠀⠀⣠⣾⡿⠋⠀⠀⢸⣿⣿⠀⠀⠀⣿⣿⡇⠀⢸⣿⡇⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⢹⣿⣇⠀⠀⠀⠀⠀⢸⣿⡿
⢀⣿⣿⠋⠉⠉⠉⢻⣿⣇⠀⢸⣿⣿⠀⠀⠀⣿⣿⠀⠀⠀⣿⣿⠀⠀⣿⣿⡀⠀⣠⣿⣿⠀⢀⣴⣿⣋⣀⣀⣀⡀⠘⣿⣿⣄⣀⣠⣿⣿⠃⠀⢸⣿⡇⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠈⢿⣿⣦⣀⣀⣀⣴⣿⡿⠃
⠚⠛⠋⠀⠀⠀⠀⠘⠛⠛⠀⠘⠛⠛⠀⠀⠀⠛⠛⠀⠀⠀⠛⠛⠀⠀⠙⠻⠿⠟⠋⠛⠛⠀⠘⠛⠛⠛⠛⠛⠛⠃⠀⠈⠛⠿⠿⠿⠛⠁⠀⠀⠘⠛⠃⠀⠀⠘⠛⠛⠀⠀⠀⠀⠀⠀⠀⠀⠙⠛⠿⢿⣿⣿⣋⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⠿⢿⡧
╭─────────────────────────────── Did you know? ────────────────────────────────╮
│ │
│ You can resume the last conversation from your current directory by │
│ launching with q chat --resume │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
/help all commands • ctrl + j new lines • ctrl + s fuzzy search
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> Write an appropriate header comment on my file ~/karakuri-checkstyle.xml
I'll help you write an appropriate header comment for your karakuri-checkstyle.xml file. Let me
first check if the file exists and what it contains.
🛠️ Using tool: fs_read (trusted)
⋮
● Reading file: ~/karakuri-checkstyle.xml, all lines
⋮
● Completed in 0.0s
Now I'll create an appropriate header comment for your karakuri-checkstyle.xml file:
🛠️ Using tool: fs_write
⋮
● Path: ~/karakuri-checkstyle.xml
Amazon Q is having trouble responding right now:
0: failed to print tool, `fs_write`: No such file or directory (os error 2)
Location:
crates/chat-cli/src/cli/chat/mod.rs:1007
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
> Try again, it's in your local directory
I'll try again with the correct path. Let me check if the file exists in my current directory.
🛠️ Using tool: fs_read (trusted)
⋮
● Reading file: /Users/mukhanee/karakuri-checkstyle.xml, all lines
⋮
● Completed in 0.0s
🛠️ Using tool: fs_write
⋮
● Path: karakuri-checkstyle.xml
1, 1: <?xml version="1.0"?>
2, 2: <!DOCTYPE module PUBLIC
3, 3: "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
4, 4: "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
5, 5:
6, 6: <!--
- 7 : Based on Java code conventions:
- 8 : http://www.oracle.com/technetwork/java/codeconv-138413.html
+ 7: Karakuri Checkstyle Configuration
+ 8:
+ 9: Purpose: Enforces code style and quality standards for the Karakuri project
+ 10:
+ 11: This configuration is based on Java code conventions:
+ 12: http://www.oracle.com/technetwork/java/codeconv-138413.html
+ 13:
+ 14: It includes checks for:
+ 15: - Naming conventions
+ 16: - Import statements
+ 17: - Code structure and formatting
+ 18: - Common coding problems
+ 19: - Class design
+ 20: - Code complexity metrics
+ 21:
+ 22: Last updated: 2025-05-21
+ 23:
+ 24: Usage:
+ 25: - Apply with Maven: mvn checkstyle:check
+ 26: - Apply with Gradle: ./gradlew checkstyleMain checkstyleTest
+ 27: - IDE integration available via plugins
9, 28: -->
Allow this action? Use 't' to trust (always allow) this tool for the session. [y/n/t]:
> /quit
Checks
q doctor
in the affected terminal sessionq restart
and replicated the issue againOperating system
MacOS
Expected behaviour
The
fs_write
tool correctly displays the diff requested by the model to accept or deny.Actual behaviour
fs_write
returns the error:when it tries to display the diff generated by the model. I ran
q chat -vvv
and saw that the model returned valid-looking output so I expect it's something client-side with how the tool call is being processed.Steps to reproduce
Here's the chat log, I repeated this with a couple different files in my home directory and they all behaved the same when I used
~/
in the path.Environment
The text was updated successfully, but these errors were encountered: