bug: an unknown --a2a-version is not a usage error

未关闭
#155 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

@ConnorMoss02 已经在做这个了。

开始于 2026年11月12日。

  • #157 来自 @ConnorMoss02 —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
go
领域
cli

调研方向

The flag value is accepted without validation, so unknown versions fall through to clientFactoryOpts, where no transports get registered. Start by finding where --a2a-version is parsed and where the 'no compatible transports found' error is produced. Done means an unsupported value fails early as a usage error that names the flag and lists the accepted values. Pull request #157 is already open against this issue, so check it before starting.

由索引模型根据 Issue 内容生成。

描述

What happened?

--a2a-version only accepts 1.0 or 0.3. Any other value registers no transports in clientFactoryOpts, so the command fails with no compatible transports found, exit 1 as A2ACLI_ERR_INTERNAL. If the card can't be reached it exits 3 with a connectivity hint instead. Nothing says the flag value is the problem.

Steps to reproduce
  1. a2a server --echo --port 18431
  2. a2a send -a http://127.0.0.1:18431 --a2a-version 1 hi exits 1 with:
Error: failed to create a client: no compatible transports found: available transports - [HTTP+JSON_1.0]
  1. a2a send -a http://127.0.0.1:1 --a2a-version 1 hi exits 3 with failed to resolve agent card.
CLI version

main @ 5c95123

Operating system & environment

macOS (Darwin 25.6.0), arm64

主要语言
Go
星标
181
派生
28
平均合并
2 天 11 小时
30 天内合并 PR
22

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

a2aproject/a2a-cli 的其他 Issue

查看 a2aproject/a2a-cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。