aws / aws/amazon-q-developer-cli
Agent edit does work if the json file and the agent name are different
- 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
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
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci il problema con /agent list e /agent edit -n kw_cli usando ~/.aws/amazonq/cli-agents/kw_cli_agent_config.json, quindi confrontalo con il caso rinominato kw_cli.json. Traccia il modo in cui il punto di ingresso /agent edit associa il nome dell’agente al relativo file di configurazione; il lavoro è completato quando la modifica funziona anche se il nome del file e il nome dell’agente incorporato differiscono.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100