amazon-q-developer-cli
amazon-q-developer-cli copied to clipboard
Tool validation failed for a bash command
Checks
- [x] I have searched github.com/aws/amazon-q-developer-cli/issues and there are no duplicates of my issue
- [x] I have run
q doctorin the affected terminal session - [x] I have run
q restartand replicated the issue again
Operating system
macOS 14.5.0 (23F79)
Expected behaviour
Tool call for bash command has to work.
Actual behaviour
Got the following error message when using the CLI
Tool validation failed:
The tool, "find . -type f -name "TODO"" is not supported by the client
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: "cdf50793-bdae-4c12-aba4-2db2ccbe08fd" }
Location:
crates/q_cli/src/cli/chat/mod.rs:424
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: "8944e192-f83a-4772-ab65-0faccb008dce" }
Location:
crates/q_cli/src/cli/chat/mod.rs:424
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Steps to reproduce
You can ask Q CLI to run the buggy bash command
Environment
[q-details]
version = "1.7.1"
hash = "7d766a2d0580db62fae5a4bc2e6eb63946d4d08e"
date = "2025-03-14T22:08:03.470338Z (5d ago)"
variant = "full"
[system-info]
os = "macOS 14.5.0 (23F79)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "32.00 GB"
[environment]
cwd = "/Users/USER/swarm"
cli-path = "/Users/USER/swarm"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "iTerm 2"
install-method = "unknown"
[env-vars]
PATH = "/Users/USER/.codeium/windsurf/bin:/Users/USER/Library/pnpm:/Users/USER/.nvm/versions/node/v20.16.0/bin:/Users/USER/.rbenv/shims:/opt/homebrew/Cellar/node@18/18.20.3/bin:/bin:/usr/bin:/usr/local/bin:/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/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:/Applications/Wireshark.app/Contents/MacOS:/Users/USER/.cargo/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/USER/.local/bin:/Users/USER/Library/Application Support/Coursier/bin:/Users/USER/.toolbox/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
QTERM_SESSION_ID = "6b04eb10708e4229a3d14f184ad8c1da"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.7.1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.googlecode.iterm2"
@dk19y , any update on this or did you fix this issue?