-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Background
Recent changes in the Copilot SDK (v0.1.24-preview.0) include:
- Event naming improvements: The SDK renamed
tool.execution_endtotool.execution_completefor clarity (PR #385 by Andrew Yoon, merged Feb 6, 2026) - Session event handling: Enhanced session event subscription mechanisms with better reliability (PR #24 by nathfavour)
- Forward compatibility tests: New tests verify handling of unknown session event types (PR #35)
- CLI update:
@github/copilotupgraded to 0.0.405 (PR #396 by Devraj Mehta, merged Feb 7, 2026)
Commit reference: 439e0f0
Proposal
Implement real-time session event monitoring in src/services/executor.ts to provide users with granular feedback during task execution. The SDK's session event API allows subscriptions to events like:
tool.execution_complete(formerlytool.execution_end)- Progress updates from Copilot agents
- Token usage and performance metrics
Implementation approach:
- Add event listeners in the Copilot SDK wrapper (
src/services/copilot.ts) - Stream events to the execution screen component (
src/screens/execute.tsx) - Display real-time progress indicators for each task (e.g., "Installing dependencies...", "Running tests...", "Generating code...")
- Show estimated completion percentages based on event data
Benefit
- Better UX: Users see what Copilot is actively doing instead of staring at a blank "In Progress" spinner
- Debugging: When tasks fail, users can see exactly where execution stopped
- Transparency: Token usage and performance data help users understand costs
- Trust: Real-time feedback builds confidence that the system is working
Acceptance Criteria
- Session event subscription implemented in
src/services/copilot.tsusing SDK's event API - Event stream plumbed to
src/screens/execute.tsx(via React state or context) - Execution screen displays at least 3 types of events: task start, progress updates, and
tool.execution_complete - Event log is scrollable and shows timestamps
- Error events are highlighted in red and include actionable messages
- Unit tests verify event handlers properly parse SDK event payloads
- Documentation updated to explain the event monitoring feature
AI generated by Weekly Enhancement Suggestions
Reactions are currently unavailable