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
GitHubCopilotAgent.CopySessionConfig() and CopyResumeSessionConfig() in Microsoft.Agents.AI.GitHub.Copilot always hardcode Streaming = true on the copied config, ignoring any value the caller sets on source.Streaming. There are scenarios where we want to disable streaming
This means there is no way to disable streaming when using AsAIAgent() with the GitHub Copilot SDK, even though SessionConfig.Streaming exists as a settable property.
Steps to Reproduce
varsessionConfig=newSessionConfig{Streaming=false,// caller explicitly disables streamingSystemMessage="You are a helpful assistant.",OnPermissionRequest=PermissionHandler.ApproveAll,};varagent=copilotClient.AsAIAgent(sessionConfig);// Agent always uses streaming regardless — CopySessionConfig ignores source.Streaming
Root Cause
internalstaticSessionConfigCopySessionConfig(SessionConfigsource){returnnewSessionConfig{Model=source.Model,ReasoningEffort=source.ReasoningEffort,// ... all other properties copied from source ...InfiniteSessions=source.InfiniteSessions,Streaming=true// ← hardcoded, should be: source.Streaming};}
Package Versions
Microsoft.Agents.AI.GitHub.Copilot (verified in 1.0.0-preview.260311.1, likely since 1.0.0-preview.260225.1)
Activity
Fix non-streaming response path for SessionConfig.Streaming=false (mi…
Add test for null Data path in ConvertToAgentResponseUpdate (microsof…
.NET: Fix CopySessionConfig() and CopyResumeSessionConfig() to preser…