aws / aws/amazon-q-developer-cli
When running in interactive mode with all tools trusted, after having a tool validation failure, Q CLI doesn't accept any input and must exit.
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
### Checks
- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again
### Operating system
macOS 15.2.0 (24C101)
### Expected behaviour
I expect the process that I run should complete with the expected output. The application that I built using Q CLI running a relatively long process (~10 mins). If I choose "t" to accept all tools in the chat, I now encounter error towards the end of execution. However, if I accept the tools one by one manually by press "y", there is no error and the execution can be completed successfully.
### Actual behaviour
The process failed with errors below
```
Tool validation failed:
The tool, "create_quip" is supplied with incorrect name
Amazon Q is having trouble responding right now:
0: unhandled error (ValidationException)
1: service error
2: unhandled error (ValidationException)
3: Error { code: "ValidationException", message: "Improperly formed request.", aws_request_id: "df45a497-20bf-4558-8fb7-4d52f2f3a124" }
Location:
/private/tmp/788abf33-519d-4264-918b-e563eeb425ff/crates/q_chat/src/lib.rs:1015
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
> What was the error
Amazon Q is having trouble responding right now:
0: unhandled error (ValidationException)
1: service error
2: unhandled error (ValidationException)
3: Error { code: "ValidationException", message: "Improperly formed request.", aws_request_id: "20b67469-60df-4ce5-8ea1-39a1830b8f1b" }
Location:
/private/tmp/788abf33-519d-4264-918b-e563eeb425ff/crates/q_chat/src/lib.rs:1015
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
> q issue
Amazon Q is having trouble responding right now:
0: unhandled error (ValidationException)
1: service error
2: unhandled error (ValidationException)
3: Error { code: "ValidationException", message: "Improperly formed request.", aws_request_id: "65430bf5-7853-418c-8ae5-30a30bc9c4c5" }
Location:
/private/tmp/788abf33-519d-4264-918b-e563eeb425ff/crates/q_chat/src/lib.rs:1015
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
> /exit
```
### Steps to reproduce
Please contact me directly as the code is in private git farm.
### Environment
```yaml
[q-details]
version = "1.9.1"
hash = "5d2c2807cab9bc6c9dc5fcd05f92c7a979e8a4f7"
date = "2025-04-29T06:22:42.917989Z (4d ago)"
variant = "full"
[system-info]
os = "macOS 15.2.0 (24C101)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "32.00 GB"
[environment]
cwd = "/Users/USER/workplace/AtsCPRTool/src/AtsCPRTool"
cli-path = "/Users/USER/workplace/AtsCPRTool/src/AtsCPRTool"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "iTerm 2"
install-method = "unknown"
[env-vars]
PATH = "/Users/USER/workplace/AtsCPRTool/src/AtsCPRTool/venv/bin:/opt/homebrew/opt/python/libexec/bin:/opt/homebrew/opt/python/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/USER/.cargo/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/USER/.local/bin:/Users/USER/.toolbox/bin:/opt/homebrew/bin"
QTERM_SESSION_ID = "f9b30823febd4adca357c9d1285d6ebc"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.7.3"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.googlecode.iterm2"
```
Contributor guide
Assessment
This issue has not been assessed yet.