.NET: A2A session save failures can mask agent execution exceptions
Maintainer thường phản hồi trong vòng 1 ngày
@SergeyMenshykh đang làm issue này rồi.
Từ ngày 30/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Description
A2AAgentHandler persists the agent session from a finally block after new-message and continuation runs. If the agent run throws and SaveSessionAsync also throws, the persistence exception replaces the original execution exception.
This can hide the actual agent failure or caller cancellation behind a secondary session-store failure.
Current behavior
Conceptually:
try
{
await RunAgentAsync(...);
}
finally
{
await SaveSessionAsync(...);
}
When both operations fail, callers observe the exception from SaveSessionAsync rather than the exception that caused the run itself to fail.
Expected behavior
Session persistence should still be attempted with an uncancelled token after a failed run, but a secondary persistence failure should not replace the already-propagating execution exception. When execution succeeds, a session save failure should continue to surface normally.
Scope
The affected paths are:
- new-message non-streaming execution;
- new-message streaming execution;
- continuation execution.
The existing unit tests already verify that session persistence is attempted with CancellationToken.None when execution fails, which provides a focused place to add regression coverage for exception precedence.
- Ngôn ngữ chính
- Python
- Star
- 14k
- Fork
- 2.5k
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 403
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/agent-framework
-
Python: [Bug]: Out-of-range Cosmos memory search parameters silently disable retrievalCó thể đã có người làm @eavanvalkenburg đã nhận 1 ngày trước. Đang mởpython
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/agent-framework#9317 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Python: [Bug]: A non-positive MCP request timeout silently disables the timeoutCó thể đã có người làm @jpalvarezl đã nhận 1 ngày trước. Đang mởpython
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
microsoft/agent-framework#9313 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Python: [Bug]: Content.from_dict leaves the nested content of image generation and MCP server tool results as plain dictsCó thể đã có người làm @eavanvalkenburg đã nhận 1 ngày trước. Đang mởpython
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
microsoft/agent-framework#9303 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
.NET: Proposal: add an llms.txtĐang mở.NET python triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
microsoft/agent-framework#9092 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Python: raw-data content mappings lose annotations and attachment metadataCó thể đã có người làm @moonbox3 đã nhận 15 ngày trước. Đang mởpython triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/agent-framework#8632 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/agent-framework
Issue tương tự
-
customer-reported question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Azure/azure-sdk-for-python#49548 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
btclib-org/btclib-wallet#409 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Phase 2 PSA Capability & Career Profile
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
bcgov/digital-journeys#2310 ·
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fastmachinelearning/hls4ml#1582 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Sort modelsĐang mởenhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày