aws / aws/amazon-q-developer-cli
bug: mcp/tools not switching when using /agent swap
- 主要言語
- 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
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again
### Operating system
WSL
### Expected behaviour
If I have 2 agents, let's call them "A" and "B". Agent A has access to certain MCP servers and Tools, A1, A2, ... Ax. Agent B has access to other MCP server and Tools B1, B2, ... Bx. Now I start a session with Q CLI with Agent A. It will load Agent A's MCPs and tools. Now I swap agents through /agent swap B. I would expect it would load Agent B's MCP Servers and Tools.
### Actual behaviour
Q switches the context to Agent B, but it keeps the MCPs and Tools from Agent A.
### Steps to reproduce
_No response_
### Environment
```yaml
```
コントリビューションガイド
調査の方向性
まず、2つのエージェントを設定した状態で `/agent swap B` を使い、WSL で問題を再現し、Agent B が Agent A の MCP サーバーとツールを保持していることを確認します。エージェント切り替えの処理と MCP/ツールの再読み込みの動作を追跡します。完了条件は、エージェントを切り替えると、利用可能なリソースが選択したエージェント用に設定されたものに置き換わることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100