aws / aws/amazon-q-developer-cli
Shell integration syntax error preventing qterm initialization in zsh
- 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
Q CLI version: 1.18.1
Shell: zsh
OS: macOS
Problem: qterm fails to initialize due to syntax error in shell integration
Error: Line 161 of zshrc.post.zsh has malformed syntax:
"syntax error near unexpected token `('"
"user:_q_autosuggest_(bound|orig)_*)"
Impact: Telemetry not being sent since shell integration broken
Workaround: Direct Q CLI commands work, but shell tracking fails
### Actual behaviour
Still broken ❌
The Q CLI shell integration has a syntax error in the autosuggest function that's preventing qterm from loading. This is a bug in the Q CLI installation.
The issue: Line 161 of the Q shell integration file has malformed syntax that breaks in zsh.
Current telemetry status:
Direct Q CLI commands work and send telemetry ✅
Shell integration (qterm) is broken due to syntax error ❌
### Steps to reproduce
_No response_
### Environment
```yaml
[q-details]
version = "1.18.1"
hash = "a46a9baa79edc62d59b078f95d46760d0c68d6c4"
date = "2025-10-13T23:05:39.763695Z (4d ago)"
variant = "full"
[system-info]
os = "macOS 15.7.1 (24G231)"
chip = "Apple M2 Pro"
total-cores = 10
memory = "16.00 GB"
[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "iTerm 2"
install-method = "unknown"
[env-vars]
PATH = "/opt/homebrew/opt/ruby/bin:/Users/USER/.local/bin:/Users/USER/.local/bin:/Users/USER/.toolbox/bin:/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:/Applications/iTerm.app/Contents/Resources/utilities:/Users/USER/.local/bin:/Users/USER/Library/Application Support/JetBrains/Toolbox/scripts:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
QTERM_SESSION_ID = "e2606ac4b21a4cec9f822aa25e93f7d8"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.18.1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.googlecode.iterm2"
```
Contributor guide
Assessment
This issue has not been assessed yet.