Feature Request: Session Export and Replay for Agent Debugging
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- java, typescript
調査の方向性
まず、Copilot SDK の既存のセッション処理と、issue に示されている提案中の loadSession/replay API を確認します。エクスポートされたメッセージ、ツール呼び出し、MCP インタラクション、メタデータ、モデル設定をどのように表現するかを確立し、その後、デバッグまたはテストのためにセッションをエクスポートしてリプレイすることを完了の基準として定義します。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Java
- スター
- 10.5k
- フォーク
- 1.5k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 117
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/copilot-sdk のほかの issue
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/copilot-sdk#2779 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/copilot-sdk#2760 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/copilot-sdk#2759 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
github/copilot-sdk#2758 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/copilot-sdk#2709 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
github/copilot-sdk の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
oracle/javavscode#652 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OpenAPITools/openapi-generator#25014 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
AloisSeckar/demos-java#380 ·