Skip to content

Conversation

@chandramouleswaran
Copy link
Contributor

@chandramouleswaran chandramouleswaran commented Feb 10, 2026

Changes

  • Bump GitHub.Copilot.SDK from 0.1.18 to 0.1.23
  • Add new SessionConfig properties: ReasoningEffort, Hooks, OnUserInputRequest, WorkingDirectory, ConfigDir, InfiniteSessions
  • Add missing ResumeSessionConfig properties: Model, SystemMessage, AvailableTools, ExcludedTools, ReasoningEffort, Hooks, OnUserInputRequest, WorkingDirectory, ConfigDir, InfiniteSessions
  • Fix UserMessageDataAttachmentsItem -> UserMessageDataAttachmentsItemFile for new polymorphic attachment API
  • Add unit tests for new session config properties

Motivation and Context

Description

Contribution Checklist

  • The code builds clean without any errors or warnings -- Yes
  • The PR follows the Contribution Guidelines -- Yes
  • All unit tests pass, and I have added new tests where possible -- Yes
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR. --- NO

…rties

- Bump GitHub.Copilot.SDK from 0.1.18 to 0.1.23
- Add new SessionConfig properties: ReasoningEffort, Hooks, OnUserInputRequest,
  WorkingDirectory, ConfigDir, InfiniteSessions
- Add missing ResumeSessionConfig properties: Model, SystemMessage,
  AvailableTools, ExcludedTools, ReasoningEffort, Hooks, OnUserInputRequest,
  WorkingDirectory, ConfigDir, InfiniteSessions
- Fix UserMessageDataAttachmentsItem -> UserMessageDataAttachmentsItemFile
  for new polymorphic attachment API
- Add unit tests for new session config properties
Copilot AI review requested due to automatic review settings February 10, 2026 07:08
@github-actions github-actions bot changed the title Update GitHub.Copilot.SDK to 0.1.23 and copy new session config prope… .NET: Update GitHub.Copilot.SDK to 0.1.23 and copy new session config prope… Feb 10, 2026
@chandramouleswaran
Copy link
Contributor Author

#3786 - Fixing the issue I shared earlier today.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the .NET GitHub Copilot integration to align with newer GitHub.Copilot.SDK session configuration capabilities and its updated attachment model.

Changes:

  • Bump GitHub.Copilot.SDK NuGet dependency from 0.1.18 to 0.1.23.
  • Plumb newly added SessionConfig/ResumeSessionConfig properties through GitHubCopilotAgent when creating/resuming sessions.
  • Update data attachment creation to use the new polymorphic attachment type, and add unit tests around session config construction.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
dotnet/Directory.Packages.props Updates GitHub.Copilot.SDK package version to 0.1.23.
dotnet/src/Microsoft.Agents.AI.GitHub.Copilot/GitHubCopilotAgent.cs Copies new session/resume config fields and updates attachment creation type.
dotnet/tests/Microsoft.Agents.AI.GitHub.Copilot.UnitTests/GitHubCopilotAgentTests.cs Adds constructor-focused tests for new session config properties.

- Extract CopySessionConfig/CopyResumeSessionConfig as internal static helpers
  to eliminate duplicated mapping logic between RunCoreStreamingAsync and
  CreateResumeConfig (addresses reviewer comment on drift risk)
- Add InternalsVisibleTo for unit test project
- Replace shallow constructor tests with comprehensive property-verification
  tests that validate every config property is correctly copied, including
  OnUserInputRequest (addresses reviewer comments on test coverage)
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Feb 12, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 12, 2026
@peibekwe peibekwe added this pull request to the merge queue Feb 12, 2026
Merged via the queue into microsoft:main with commit 0c67dbb Feb 12, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants