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

Đang mở
#155 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@ConnorMoss02 đang làm issue này rồi.

Từ ngày 12/11/2026.

  • #157 của @ConnorMoss02 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

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.

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

Mô tả

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

Ngôn ngữ chính
Go
Star
181
Fork
28
Merge trung bình
2 ngày 11 giờ
Pull request đã merge (30 ngày)
22

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của a2aproject/a2a-cli

Tất cả issue của a2aproject/a2a-cli

Issue tương tự

Thêm issue về Go

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.