aws / aws/amazon-q-developer-cli

qterm integration fails to initialize - Q_TERM environment variable not set

Offen
#2,114 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
2k
Forks
439
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### 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

### Operating system

Linux 5.10.238-212.953.amzn2int.x86_64 - Amazon Linux 2

### Expected behaviour

## Problem
`q doctor` consistently shows "qterm is not running in this terminal" with Q_TERM= (empty), despite multiple terminal restarts.

## Environment
- Q CLI version: 1.12.1
- OS: Linux
- Shell: zsh
- Terminal: Amazon Cloud desktop environment

### Actual behaviour

## actual behavior
- `q doctor` shows: "✘ Amazon Q terminal integrations: qterm is not running in this terminal, please try restarting your terminal"
- Q_TERM environment variable remains empty
- `q init zsh post --rcfile zshrc` generates malformed/incomplete output starting mid-code
- Multiple complete terminal restarts do not resolve the issue
- Manual attempts to set Q_TERM do not persist

## Expected Behavior
After terminal restart, qterm integration should work properly with Q_TERM set, enabling autosuggestions and shell integration.

### Steps to reproduce

## Steps to Reproduce
1. Install Q CLI (version 1.12.1)
2. Run `q doctor` - shows qterm integration error
3. Restart terminal completely (attempted multiple times)
4. Run `q doctor` again - error persists
5. Check `q init zsh post --rcfile zshrc` output - shows malformed code
6. Integration file at ~/.local/share/amazon-q/shell/zshrc.post.zsh fails when Q init command is uncommented

## Additional Notes
- Q chat functionality works normally
- Core Q CLI features are functional
- Only terminal integration features are affected

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Mit `q doctor` und `q init zsh post --rcfile zshrc` in der gemeldeten Amazon Linux 2- und zsh-Umgebung reproduzieren. `~/.local/share/amazon-q/shell/zshrc.post.zsh` untersuchen und die generierte Ausgabe mit dem Q_TERM-Wert nach einem Neustart des Terminals vergleichen. Erledigt bedeutet, dass die generierte Integration vollständig ist, bei Aktivierung bestehen bleibt und `q doctor` qterm als laufend meldet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell, zsh
Bereich
cli, developer-experience
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.