aws / aws/amazon-q-developer-cli

Amazon Q CLI blocks git autocomplete for git branch --set-upstream-to command

Offen
#1,899 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
- [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 5.10.236-208.928.amzn2int.x86_64 - Amazon Linux 2

### Expected behaviour

Git autocomplete should work normally within Amazon Q CLI sessions, particularly for commands like git branch --set-upstream-to where seeing available remote branches is especially helpful.

### Actual behaviour

When using Amazon Q CLI, git autocomplete functionality doesn't work properly for the git branch --set-upstream-to command. The autocomplete suggestions that would normally appear in a regular shell don't come through.

### Steps to reproduce

In a git repo, type `git branch --set-upstream-to ` tab. Normally, for git it should show origin or other remote. With q, it's only showing local branches and flags.

### Environment

```yaml
[q-details]
version = "1.9.1"
hash = "5d2c2807cab9bc6c9dc5fcd05f92c7a979e8a4f7"
date = "2025-04-29T06:21:28.508115Z (21d ago)"
variant = "minimal"

[system-info]
chip = "AMD EPYC 7R13 Processor"
total-cores = 48
memory = "184.89 GB"

[system-info.os.linux]
kernel_version = "5.10.236-208.928.amzn2int.x86_64"
id = "amzn"
name = "Amazon Linux"
pretty_name = "Amazon Linux 2"
version_id = "2"
version = "2"
variant = "internal"

[environment]
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "4.2.46"
install-method = "unknown"
in-ssh = true

[env-vars]
QTERM_SESSION_ID = "d4352b27ff2d4152bbbdb28f8dc188c7"
Q_PARENT = "/tmp/q-parent-d7a5c6208e3b44b198519b035b57c555.socket"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.9.1"
SHELL = "/bin/bash"
TERM = "xterm-256color"

[chat-settings]
interactive=true

[chat-trusted_tools]

[chat-failed_request_ids]
none

[chat-context]
current_profile=default
profiles=
default

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

profile_context=none
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, in einer Bash-Sitzung innerhalb von Amazon Q CLI `git branch --set-upstream-to ` gefolgt von Tab auszuführen, und vergleiche anschließend die Vorschläge mit einer regulären Shell. Verfolge die Shell-Completion-Behandlung der CLI für diesen Befehl nach; fertig ist die Aufgabe, wenn Remote-Branches wie `origin` neben den bereits vorhandenen lokalen Branches und Flags erscheinen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
bash, git
Bereich
cli, developer-experience
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

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