aws / aws/amazon-q-developer-cli

Agent edit does work if the json file and the agent name are different

オープン
#2,913 コメント 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
- [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 6.6.87.2-microsoft-standard-WSL2 - Ubuntu 24.04.3 LTS

### Expected behaviour

# Current files
## cli-agents directory:
• ~/.aws/amazonq/cli-agents/kw_cli_agent_config.json

# Command

> /agent edit -n kw_cli

# Expected
An editor will open with my configuration.

### Actual behaviour

[chat-transcript]

> /agent list

blank
\* kw_cli

> /agent edit -n kw_cli

**Failed to execute command: Agent kw_cli does not exist**

### Steps to reproduce

### Create a JSON file for a cli-agent, give it a different name from the agent name inside it.

```
> /agent list

blank
* kw_cli

> /agent edit -n kw_cli

Failed to execute command: Agent kw_cli does not exist

```

### Fix, rename the file to match the agent name.

`mv ~/.aws/amazonq/cli-agents/kw_cli_agent_config.json ~/.aws/amazonq/cli-agents/kw_cli.json`

### Environment

```yaml
[q-details]
version = "1.16.0"
hash = "8417df71be2c2090b5fd08c91561fda44d7e7566"
date = "2025-09-16T21:42:39.51462Z (17h ago)"

[system-info]
chip = "Intel(R) Core(TM) i5-10500T CPU @ 2.30GHz"
total-cores = 6
memory = "7.63 GB"

[system-info.os.linux]
kernel_version = "6.6.87.2-microsoft-standard-WSL2"
id = "ubuntu"
name = "Ubuntu"
pretty_name = "Ubuntu 24.04.3 LTS"
version_id = "24.04"
version = "24.04.3 LTS (Noble Numbat)"

[environment]
in-wsl = true

[chat-settings]

[chat-trusted_tools]
use_aws=trusted
execute_bash=trusted
fs_write=trusted
fs_read=trusted

[chat-failed_request_ids]
none

[chat-context]
current_profile=kw_cli
profile_context=
AmazonQ.md
README.md
.amazonq/rules/**/*.md
docs/*.md
```

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

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

調査の方向性

/agent list と /agent edit -n kw_cli で問題を再現し、~/.aws/amazonq/cli-agents/kw_cli_agent_config.json を使用して、その後、名前を変更した kw_cli.json のケースと比較します。/agent edit のエントリポイントがエージェント名を設定ファイルにどのように対応付けているかを追跡します。ファイル名と埋め込まれたエージェント名が異なる場合でも編集が機能すれば完了です。

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

評価

技術スタック
rust
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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