aws / aws/amazon-q-developer-cli

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

Đang mở
#2,913 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
2k
Fork
439
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Tái hiện vấn đề với /agent list và /agent edit -n kw_cli bằng cách sử dụng ~/.aws/amazonq/cli-agents/kw_cli_agent_config.json, sau đó so sánh với trường hợp đã đổi tên kw_cli.json. Truy vết cách điểm vào /agent edit đối chiếu tên agent với tệp cấu hình của nó; hoàn thành khi thao tác chỉnh sửa vẫn hoạt động ngay cả khi tên tệp và tên agent được nhúng khác nhau.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.