aws / aws/amazon-q-developer-cli

Default context paths lead to erroneous behavior in Q chat

Aperta
#943 0 commenti 0 reazioni 1 assegnatario Rivendicata da @GoodluckH Vedi su GitHub
q chat
Lingua principale
Rust
Stelle
2k
Fork
439
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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.3.1 (24D70)

### Expected behaviour

Prompt:

```
> commit changes in this folder with a good commit message
```

Result:

```
Q should use git diff and commit the changes
```

### Actual behaviour

Prompt:

```
> commit changes in this folder with a good commit message
```

Result:
```
I notice that you want to commit changes in the current folder, but it appears that the files mentioned in your context don't exist yet. Let me check what files actually exist in the current directory before proceeding with the commit.
```

The context files for me are only the default ones:

```
> /context show

current profile: default

global:
.amazonq/rules/**/*.md
README.md
AmazonQ.md

profile:

>
```

Ideally, Q should not mention those files since the user has never explicitly added them to the context. Instead they should be used if they exist, but otherwise ignored.

### Steps to reproduce

_No response_

### Environment

```yaml
[q-details]
version = "1.7.2"
hash = "b6bf5f1675dd7395009e8bc65c1145820671f211"
date = "2025-03-21T01:36:16.66764Z (5d ago)"
variant = "full"
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.