ag-ui-protocol / ag-ui-protocol/ag-ui

[Bug]: A2UI action retries generate different synthetic message identities

Đang mở
#2,711 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
15.9k
Fork
1.4k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
163

Mô tả

## Describe the Bug

A2UIMiddleware assigns fresh synthetic assistant, Tool call and result IDs each time it processes an action. Retrying the same run therefore produces a different backend request, preventing exact replay and potentially repeating the action.

## Steps to Reproduce

1. Create a RunAgentInput with a runId and forwardedProps.a2uiAction.
2. Process that input through A2UIMiddleware and record the synthetic message pair sent downstream.
3. Retry the same input with the same runId.
4. Compare the synthetic assistant message ID, Tool call ID and Tool result ID: all change.

## Expected Behavior

A retry of the same run preserves its synthetic identities. A new action uses a new runId and receives different identities even when the payload is identical.

## Environment

TypeScript A2UI middleware on current main; Node 22.23.1. The proposed fix is limited to action message creation and focused middleware tests.

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

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

Đánh giá

Issue này chưa được đánh giá.

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.