aws / aws/amazon-q-developer-cli

bracketed paste

Open
#3,110 3 comments 0 reactions 0 assignees View on GitHub
waiting-for-feedback
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.0 (24G222)

### Expected behaviour

I disabled "bracketed paste" mode, i.e. set up my `.inputrc` accordingly
```
$ cat .inputrc
set enable-bracketed-paste off
```
When I paste something that contains a newline, I usually mean that newline - or I would not have captured it in my paste buffer. So, when I typed the beginning `/context add ` paste a path including newline, I meant that newline to be ENTER.

### Actual behaviour

When I paste into `q chat` it still needs an additional ENTER. Effectively, Q chat's readline library ignores my bracket paste settings.

### Steps to reproduce

1. Turn off your bracketed paste settings (differs from shell to shell)
2. Capture something into your paste buffer that includes a newline, i.e. triple-click a line in a terminal and +C
3. Paste (+V) into a Q chat.

When bracketed paste mode is active, you need to press ENTER. When bracketed paste mode is disabled, it will execute immediately.

### Environment

```yaml

[q-details]
version = "1.17.1"
hash = "b0ef39f91625c36c2ed6f065628e7165fae9012c"
date = "2025-09-30T22:01:25.726592Z (6d ago)"

[system-info]
os = "macOS 15.7.0 (24G222)"
chip = "Apple M4 Pro"
total-cores = 14
memory = "48.00 GB"

[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
install-method = "unknown"

[env-vars]
DISPLAY = "/private/tmp/com.apple.launchd.738bxO09Qd/org.xquartz:0"
PATH = "/Users/USER/.local/share/mise/installs/python/3.13.7/bin:/Users/USER/bin:/opt/homebrew/bin:/opt/homebrew/Cellar/scala@2.12/2.12.20/bin:/opt/homebrew/sbin:/Users/USER/.local/bin:/Users/USER/.toolbox/bin:/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:/opt/X11/bin:/Library/Apple/usr/bin:/Users/USER/.local/bin:/Users/USER/Library/Application Support/JetBrains/Toolbox/scripts"
QTERM_SESSION_ID = "3db4f59576eb4a87b54a256670224b87"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.17.1"
SHELL = "/opt/homebrew/bin/bash"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"
```

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.