aws / aws/amazon-q-developer-cli
Amazon Q CLI shell integration interferes with Home key + "#" comment workflow
- 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
### Operating system
Linux 6.14.6-200.fc41.x86_64 - Fedora Linux 41 (Workstation Edition)
### Expected behaviour
When pressing Home key to move cursor to beginning of line, then typing "#" to comment out a command, the command should be treated as a comment and added to history without execution.
### Actual behaviour
pressing home key to move cursor to beginning of line, then typing "#" to comment our the command results in
`q translate ''`
for example, this is how it becomes in terminal when i tried to comment out the vi command
```
q translate 'vi ~/.local/share/amazon-q/shell/bashrc.post.bash'vi ~/.local/share/amazon-q/shell/bashrc.post.bash
```
### Steps to reproduce
1. Install Amazon Q CLI
2. Type a command in terminal but don't press Enter
3. Press Home key to move cursor to beginning of line
4. Type "#" to comment out the command
5. Press Enter
6. Observe that instead of being treated as a comment, the command is interpreted as "q translate "
Contributor guide
Assessment
This issue has not been assessed yet.