Skip to content

Commit 8850645

Browse files
committed
fix(a2a): set final=True for error TaskStatusUpdateEvent in event_converter
When a task transitions to TaskState.failed, the resulting TaskStatusUpdateEvent should have final=True because the error state is terminal — no further events will follow. The existing from_adk_event.py already sets final=True for error events (line 154), but event_converter.py incorrectly uses final=False, which causes consumers to wait indefinitely for additional events after a failure. Closes #5388 Signed-off-by: Cocoon-Break <54054995+kuishou68@users.noreply.github.com>
1 parent 7623ff1 commit 8850645

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/google/adk/a2a/converters/event_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def _create_error_status_event(
461461
platform_time.get_time(), tz=timezone.utc
462462
).isoformat(),
463463
),
464-
final=False,
464+
final=True,
465465
)
466466

467467

0 commit comments

Comments
 (0)