aws / aws/amazon-q-developer-cli

bug: 2.0 changed command names

Open
#3,750 0 comments 0 reactions 0 assignees View on GitHub
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

linux

### Expected behaviour

hook scripts written against 1.x continue to work

### Actual behaviour

1.x:
```
{"hook_event_name":"preToolUse","cwd":"/home/jjshoe/wickfire/iac","session_id":"752f697f-8e63-4de7-bab9-2d5d1597c4a6","tool_name":"write","tool_input":{"command":"str_replace","oldStr":"b","newStr":"c","path":"/tmp/a"}}
```

2.0

```
{"hook_event_name":"preToolUse","cwd":"/home/jjshoe/wickfire/iac","session_id":"752f697f-8e63-4de7-bab9-2d5d1597c4a6","tool_name":"write","tool_input":{"command":"strReplace","oldStr":"b","newStr":"c","path":"/tmp/a"}}
```

No note was added to the changelog about this, and this breaking change then allowed my agent to go nuts since I use a hook against the tool_name of write to stop kiro from making rogue unasked for edits, it immediately started running amok on my system

### Steps to reproduce

_No response_

### Environment

```yaml

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.