aws / aws/amazon-q-developer-cli

Amazon Q CLI autocompletion dropdown disappears too quickly

Open
#1,486 1 comment 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 6.8.0-58-generic - Ubuntu 22.04.5 LTS

### Expected behaviour

The autocompletion dropdown should remain visible until the user makes a selection or dismisses it, as it did in previous versions.

### Actual behaviour

The autocompletion dropdown list that appears as you type in the terminal disappears too quickly, not staying visible like it used to before a recent update.

```
[chat-transcript]
I understand now - you're referring to the dropdown list of autocompletion suggestions that appears automatically as you type (not the tab-triggered completion). This

> please assist me in reverting the uneeded changes we made earlier, and verify the amazon q CLI settings for a potential culprit

I'll help you revert the unneeded changes we made earlier and check the Amazon Q CLI settings for potential issues with the autocompletion dropdown.

First, let's revert the changes we made to your configuration files:
[Tool uses: fs_read]

[Tool uses: fs_write]

Amazon Q is having trouble responding right now:
0: failed to print tool, `fs_write`: No such file or directory (os error 2)

Location:
/codebuild/output/src3298519376/src/crates/q_chat/src/lib.rs:1019

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

> continue without interacting with the bashrc file

I understand. I'll continue without making any changes to your bashrc file.

Since we've identified that the issue is likely with the Amazon Q CLI's autocompletion dropdown feature rather than your bash configuration, let's focus on examining the Amazon Q CLI settings instead.

To check Amazon Q CLI settings and potentially find the culprit for the disappearing dropdown:

1. **Check Amazon Q CLI version and configuration:**
- You can run `q --version` to check your current version
- Look for any configuration files in `~/.config/amazon-q/` or similar directories

2. **Examine Amazon Q shell integration files:**
- The Amazon Q shell integration is loaded from these files mentioned in your bashrc:
- `${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash`
- `${HOME}/.local/share/amazon-q/shell/bashrc.post.bash`
- These files might contain settings related to the autocompletion dropdown

3. **Report the issue:**
- Since this behavior started after an update, it's likely a bug in the latest version
- You can report this issue to Amazon Q's support or through their issue tracking system

4. **Temporary workaround:**
- You might be able to revert to a previous version of Amazon Q CLI if available
- Or check if there are any environment variables you can set to control the dropdown behavior

The dropdown autocompletion feature is specific to Amazon Q's CLI integration and not a standard bash feature, which is why our earlier bash configuration changes didn't address the issue.

Would you like me to help you examine the Amazon Q shell integration files to look for settings related to the autocompletion dropdown?
[Tool uses: none]

> yes

I'll help you examine the Amazon Q shell integration files to look for settings related to the autocompletion dropdown.
[Tool uses: fs_read]

[Tool uses: fs_read]

[Tool uses: execute_bash]

[Tool uses: fs_read]

[Tool uses: execute_bash]

[Tool uses: execute_bash]

[Tool uses: fs_read]

[Tool uses: execute_bash]

[Tool uses: execute_bash]

[Tool uses: report_issue]

(...truncated)
```

### Steps to reproduce

1. Start typing a command in the terminal with Amazon Q CLI installed
2. Observe the autocompletion dropdown appear
3. Notice that it disappears too quickly before you can make a selection

### Environment

```yaml

[q-details]
version = "1.9.1"
hash = "5d2c2807cab9bc6c9dc5fcd05f92c7a979e8a4f7"
date = "2025-04-29T06:25:24.357798Z (3d ago)"
variant = "full"

[system-info]
chip = "AMD Ryzen 9 5900HX with Radeon Graphics"
total-cores = 8
memory = "14.97 GB"

[system-info.os.linux]
kernel_version = "6.8.0-58-generic"
id = "ubuntu"
name = "Ubuntu"
pretty_name = "Ubuntu 22.04.5 LTS"
version_id = "22.04"
version = "22.04.5 LTS (Jammy Jellyfish)"

[environment]
cwd = "/home/USER/Work and Education/JavaScriptADS/Algorithms"
cli-path = "/home/USER/Work and Education/JavaScriptADS/Algorithms"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.1.16"
install-method = "unknown"

[env-vars]
DISPLAY = ":1"
GTK_IM_MODULE = "ibus"
PATH = "/home/USER/.local/bin:/home/USER/bin:/home/USER/.local/share/pnpm/global/5/node_modules:/home/USER/.nvm/versions/node/v23.1.0/bin:/home/USER/.local/bin:/home/USER/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/USER/.local/bin"
QTERM_SESSION_ID = "51e339ab38ca45d8b0da58809d7c35da"
QT_IM_MODULE = "ibus"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.9.1"
SHELL = "/bin/bash"
TERM = "screen-256color"
XDG_CURRENT_DESKTOP = "ubuntu:GNOME"
XDG_SESSION_DESKTOP = "ubuntu"
XDG_SESSION_TYPE = "x11"
XMODIFIERS = "@im=ibus"

[chat-settings]
interactive=true

[chat-trusted_tools]
execute_bash=true
fs_write=true

[chat-failed_request_ids]
none

[chat-context]
current_profile=default
profiles=
default

global_context=
.amazonq/rules/**/*.md
README.md
AmazonQ.md

profile_context=none

files=none
```

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.