aws / aws/amazon-q-developer-cli

bug: Pasting no longer works in VIM

Open
#3,157 2 comments 0 reactions 0 assignees View on GitHub
bug
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.7.1 (24G231)

### Expected behaviour

Hi there,

When I open VIM, and paste in a certain amount of content (sorry, I can't really share the content, but it's usually a large, (in this case, 3000+ lines) of code (this could be Python code, this could be a JSON document, etc), then VIM, and my terminal completely freeze. I can't reproduce it in a way that 3000+ lines of JSON will always freeze, it seems to be random (maybe because my JSON contains a lot of URLs or so, I'm not sure). As a test, I've also copied the complete content of https://en.wikipedia.org/wiki/Europe (just browse to the site, copy and paste the whole website) into VIM, and I can reproduce it: VIM completely crashes. If I just paste it in my terminal, no issue. When I remove Q cli, all works again fine. This makes Q very unusable for me.

I'm using iterm2, but when I use MacOS terminal, I have the same issue. I've tried using PICO instead of VIM, and no issue with PICO.

### Actual behaviour

When I do a paste of the content in my buffer, the terminal completely freezes. Without Q CLI, it doesn't.

### Steps to reproduce

See above.

### Environment

```yaml

[q-details]
version = "1.17.1"
hash = "52301a3b0f81abff5ecde04a02481734c5c7ecc4"
date = "2025-09-30T22:25:33.521557Z (12d ago)"
variant = "full"

[system-info]
os = "macOS 15.7.1 (24G231)"
chip = "Apple M3 Pro"
total-cores = 12
memory = "36.00 GB"

[environment]
cwd = "/Users/USER/projects/connectid-tech/certs"
cli-path = "/Users/USER/projects/connectid-tech/certs"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "iTerm 2"
install-method = "brew"

[env-vars]
PATH = "/Users/USER/.rbenv/shims:/Users/USER/.rbenv/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/dotnet@8/bin:/Users/USER/.jenv/shims:/Users/USER/.nvm/versions/node/v20.18.1/bin:/Users/USER/.pyenv/shims:/Users/USER/.composer/vendor/bin:/Users/USER/scripts/:/Users/USER/dev/:/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:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/sbin:/Users/USER/.cargo/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/USER/.local/bin:/Users/USER/bin"
QTERM_SESSION_ID = "5f3b07ff988445fa931541e61f05b9c8"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.17.1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.googlecode.iterm2"
```

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.