[Bug] Scaffolded agent card grows a duplicate JSONRPC 0.3 interface on every GET (card_modifier mutates the shared AgentCard)
- Lingua principale
- Python
- Stelle
- 5.9k
- Fork
- 660
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Every project scaffolded from the ADK template appends a duplicate
`JSONRPC / 0.3` entry to `supportedInterfaces` on **every** request to the
public agent-card endpoint. The list grows without bound for the life of
the process.
### Reproduction
```bash
uv tool install google-agents-cli # 1.4.1
agents-cli create react-agent --adk
cd react-agent && uv sync
uv run uvicorn app.fast_api_app:app --host 127.0.0.1 --port 8000
for i in 1 2 3 4 5; do
curl -s localhost:8000/a2a/app/.well-known/agent-card.json \
| python3 -c "import sys,json;print(len(json.load(sys.stdin)['supportedInterfaces']))"
done
```
**Observed:** `2 3 4 5 6` — one `JSONRPC 1.0` entry plus N identical
`JSONRPC 0.3` entries, all with the same URL.
**Expected:** a stable card with exactly two interfaces, regardless of how
many times it is fetched.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dal punto di ingresso app.fast_api_app:app dell’app con scaffold e segui l’endpoint pubblico della scheda dell’agente fino al card_modifier menzionato nell’issue. Riproduci il comportamento con il ciclo curl fornito, quindi verifica che le richieste ripetute lascino supportedInterfaces con esattamente due voci e gli URL previsti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api, backend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 68/100