You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extracted Copilot session event dispatch into an unexported helper so the run loop focuses on queueing and yielding updates. This mirrors the .NET Copilot provider's structure where session events are converted through dedicated response-update conversion paths, making future .NET-to-Go ports easier to compare without changing behavior.
.NET Reference
dotnet/src/Microsoft.Agents.AI.GitHub.Copilot/GitHubCopilotAgent.cs - handles Copilot session events by converting each event kind to an agent response update and completing on idle/error events.
Public API and Behavior
No public Go API changed. No intentional behavior change was made.
Tests
go test ./agent/provider/copilotagent
Notes
Rejected candidates:
dotnet/src/Microsoft.Agents.AI/Harness/Loop/AIJudgeLoopEvaluatorOptions.cs - Go loop harness has completion-marker evaluators but no matching AI judge implementation to safely refactor without adding missing .NET features.
dotnet/src/Microsoft.Agents.AI.Workflows/ExternalResponse.cs - Go has the corresponding workflow.ExternalResponse, but adding .NET-style typed helper methods would expand the public API.
dotnet/src/Microsoft.Agents.AI.AGUI/Shared/ReasoningEndEvent.cs - Go AGUI hosting already emits reasoning end events through existing protocol constructors; no narrow internal cleanup was apparent from this sampled file.
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch dotnet-code/copilot-event-dispatch-f1beb03e90e4da0a.
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Summary
Extracted Copilot session event dispatch into an unexported helper so the run loop focuses on queueing and yielding updates. This mirrors the .NET Copilot provider's structure where session events are converted through dedicated response-update conversion paths, making future .NET-to-Go ports easier to compare without changing behavior.
.NET Reference
dotnet/src/Microsoft.Agents.AI.GitHub.Copilot/GitHubCopilotAgent.cs- handles Copilot session events by converting each event kind to an agent response update and completing on idle/error events.Public API and Behavior
No public Go API changed. No intentional behavior change was made.
Tests
go test ./agent/provider/copilotagentNotes
Rejected candidates:
dotnet/src/Microsoft.Agents.AI/Harness/Loop/AIJudgeLoopEvaluatorOptions.cs- Go loop harness has completion-marker evaluators but no matching AI judge implementation to safely refactor without adding missing .NET features.dotnet/src/Microsoft.Agents.AI.Workflows/ExternalResponse.cs- Go has the correspondingworkflow.ExternalResponse, but adding .NET-style typed helper methods would expand the public API.dotnet/src/Microsoft.Agents.AI.AGUI/Shared/ReasoningEndEvent.cs- Go AGUI hosting already emits reasoning end events through existing protocol constructors; no narrow internal cleanup was apparent from this sampled file.Note
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch
dotnet-code/copilot-event-dispatch-f1beb03e90e4da0a.Click here to create the pull request
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch preview (78 of 78 lines)