aws / aws/amazon-q-developer-cli
Docker interactive terminal with postgres hangs the terminal and doesn't respond to ctrl-c
- 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.4.1 (24E263)
### Expected behaviour
I expect the terminal not to hang, and ideally, for ctrl-c to be detected and to terminate the command.
### Actual behaviour
I can exit the first postgres call (after ctrl-c a few times) with the letter `q`, and when the next call happens, the terminal hangs.
### Steps to reproduce
"Please help me set up and launch a PostgreSQL container using Docker. I need it running on the standard port 5432 with the
default postgres user. Once it's running, verify the connection by checking the PostgreSQL version."
Ctrl-C after it launches, a few times. Then q.
It will then run `docker -it` again, this time with a grep. This hangs before launching docker.
### Environment
```yaml
[q-details]
version = "1.9.1"
hash = "5d2c2807cab9bc6c9dc5fcd05f92c7a979e8a4f7"
date = "2025-04-29T06:22:42.917989Z (3d ago)"
variant = "full"
[system-info]
os = "macOS 15.4.1 (24E263)"
chip = "Apple M3 Pro"
total-cores = 12
memory = "36.00 GB"
```
Contributor guide
Assessment
This issue has not been assessed yet.