aws / aws/amazon-q-developer-cli

Hallucination on clearing context

オープン
#2,016 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
2k
フォーク
439
PR マージ指標
30日以内にマージされた PR はありません

説明

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

macOS 15.5.0 (24F74)

### Expected behaviour

```
> How can I clear Q context from this session so far?
To clear the context from your current Amazon Q session, you have a few options:
...
2. If you want to continue in the same session but start fresh, you can use:
• /clear command (if available in your version)
```

### Actual behaviour

```
> How can I clear Q context from this session so far?
To clear the context from your current Amazon Q session, you have a few options:
...
2. If you want to continue in the same session but start fresh, you can use:
• /reset command (if available in your version)

> /reset
Error: Unknown command: '/reset'.

> The "/reset" command does not appear to be available in this version.
You're right, the /reset command isn't available in this version of Amazon Q CLI. In that case, your best option to clear the context is to:
1. Type /quit to exit the current session
2. Then start a new session with q chat

> /help
q (Amazon Q Chat)
Commands:
/clear Clear the conversation history
...

> /clear
Are you sure? This will erase the conversation history and context from hooks for the current session. [y/n]:

> y
Conversation history cleared.

> Can you tell me what we've chatted about so far?
We haven't had any previous conversations in this session. This appears to be the start of our conversation. How can I help you today? I can assist with...
```

### Steps to reproduce

LLM behavior is not reproducible of course. But the transcript above should give a good idea of how to try.
This was happening in Q CLI 6June2025 morning Mountain time.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、q chat を使って Q CLI セッションでトランスクリプトを再現し、次に利用可能な /help コマンドと、コンテキストのクリアに関する質問への応答を確認します。アシスタントが一貫して /clear をコマンドとして特定し、利用できない /reset コマンドを提案しなければ完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
ai, cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。