a2aproject / a2aproject/a2a-js

[Clarification]: DefaultPushNotificationSender does not set the a2a-version header on outgoing push notifications

Đang mở Phù hợp với người mới
#647 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
613
Fork
169
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
21

Mô tả

Hi, thanks for the great work on the SDK.

When using DefaultPushNotificationSender, outgoing push notifications do not include the a2a-version header. This applies both for v1.0 and when using the legacyCompat serializer with v0.3. The receiver has no way to know which protocol version the body conforms to without inspecting the body itself.

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

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

Hướng nghiên cứu

Look for the DefaultPushNotificationSender class in the codebase, likely in a file like src/senders/defaultPushNotificationSender.ts or similar. Examine the method that sends push notifications to see how headers are set. The fix is to add the 'a2a-version' header based on the protocol version being used. Check existing tests for push notifications to understand the expected behavior and add a test for the new header.

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

Đánh giá

Công nghệ
javascript, typescript
Lĩnh vực
api, backend
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
65/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.