Skip to content

fix(conversation): allow event ID reuse within turns#424

Merged
JeanMertz merged 1 commit intomainfrom
prr
Mar 10, 2026
Merged

fix(conversation): allow event ID reuse within turns#424
JeanMertz merged 1 commit intomainfrom
prr

Conversation

@JeanMertz
Copy link
Collaborator

Refactor the validation logic in TurnMut to scope ToolCallResponse and InquiryResponse checks to the current turn, and only check that the number of Response events match the number of Request events.

This avoids issues with e.g. the Google provider, which reuses synthetic IDs across HTTP requests, but within the same turn.

Refactor the validation logic in `TurnMut` to scope `ToolCallResponse`
and `InquiryResponse` checks to the current turn, and only check that
the number of `Response` events match the number of `Request` events.

This avoids issues with e.g. the Google provider, which reuses synthetic
IDs across HTTP requests, but within the same turn.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit eb7da27 into main Mar 10, 2026
11 checks passed
@JeanMertz JeanMertz deleted the prr branch March 10, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant