Feature Request: Session Export and Replay for Agent Debugging
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- java, typescript
- Lĩnh vực
- developer-experience, testing
Hướng nghiên cứu
Bắt đầu bằng việc xem xét cách xử lý session hiện có của Copilot SDK và API loadSession/replay được đề xuất trong issue. Xác định cách biểu diễn các message đã export, các lần gọi tool, các tương tác MCP, metadata và cấu hình model, sau đó xác định tiêu chí hoàn tất cho việc export một session và replay session đó để debug hoặc kiểm thử.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Title
Feature Request: Session Export and Replay for Agent Debugging
Description
Problem
When building agents with the Copilot SDK, debugging complex multi-turn conversations can be difficult.
Developers often encounter situations where:
- An agent behaves unexpectedly after several turns.
- A tool invocation produces an incorrect result.
- Context accumulation affects later responses.
- Bugs only appear after a specific sequence of interactions.
Currently, reproducing these issues typically requires manually recreating the entire conversation flow.
Proposed Solution
Add session export and replay capabilities to the Copilot SDK.
Session Export
Allow developers to export a session including:
- User messages
- Assistant messages
- Tool calls
- Tool results
- MCP interactions
- Session metadata
- Model configuration
Example:
{
"sessionId": "...",
"messages": [...],
"toolCalls": [...],
"metadata": {...}
}
Session Replay
Provide APIs to replay exported sessions for debugging and testing.
Example:
const session = await sdk.loadSession("./session.json");
await session.replay();
Optional Features
- Replay until a specific turn
- Step-by-step execution
- Compare outputs across SDK versions
- Compare outputs across models
- Deterministic replay mode
Use Cases
Agent Development
Reproduce user-reported failures without requiring users to recreate conversations.
Regression Testing
Verify that SDK upgrades do not change agent behavior unexpectedly.
Tool Debugging
Inspect exactly how tool calls and results affected agent decisions.
Benchmarking
Compare responses across different models using the same session history.
Benefits
- Easier debugging
- Better reproducibility
- Improved regression testing
- Faster issue triage
- Better developer experience for agent builders
Alternatives Considered
- Manual logging of messages
- Custom session serialization
- Third-party observability platforms
These approaches require significant additional implementation and are not standardized across SDK users.
- Ngôn ngữ chính
- Java
- Star
- 10.5k
- Fork
- 1.5k
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 130
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 github/copilot-sdk
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
github/copilot-sdk#2760 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
github/copilot-sdk#2759 ·
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
github/copilot-sdk#2758 ·
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/copilot-sdk#2709 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
github/copilot-sdk#2673 ·
Tất cả issue của github/copilot-sdk
Issue tương tự
-
certification
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Đang mởbug ecr
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Needs: Triage Type: Feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
AntennaPod/AntennaPod#8794 ·
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100