Skip to content

Update @github/copilot to 1.0.32-0#1103

Closed
github-actions[bot] wants to merge 2 commits intomainfrom
update-copilot-1.0.32-0
Closed

Update @github/copilot to 1.0.32-0#1103
github-actions[bot] wants to merge 2 commits intomainfrom
update-copilot-1.0.32-0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.32-0.

Changes

  • Updated @github/copilot in nodejs/package.json and test/harness/package.json
  • Re-ran all code generators (scripts/codegen)
  • Formatted generated output

Next steps

When ready, click Ready for review to trigger CI checks.

Created by the Update @github/copilot Dependency workflow.

- Updated nodejs and test harness dependencies
- Re-ran code generators
- Formatted generated code
Comment thread python/copilot/generated/session_events.py Fixed
Comment thread python/copilot/generated/session_events.py Fixed
Comment thread python/copilot/generated/session_events.py Fixed
Comment thread python/copilot/generated/session_events.py Fixed
Comment thread python/copilot/generated/session_events.py Fixed
Comment thread python/copilot/generated/session_events.py Fixed
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@stephentoub stephentoub marked this pull request as ready for review April 17, 2026 17:14
@stephentoub stephentoub requested a review from a team as a code owner April 17, 2026 17:14
Copilot AI review requested due to automatic review settings April 17, 2026 17:14
Copy link
Copy Markdown
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

Automated dependency bump of @github/copilot to 1.0.32-0 across the Node.js packages, followed by regenerating and formatting the SDK’s generated artifacts (TypeScript, Go, .NET, and Python codegen output adjustments).

Changes:

  • Updated @github/copilot to ^1.0.32-0 in Node.js and test harness package manifests/locks.
  • Updated code generation pipeline (Python post-processing) and regenerated SDK type outputs (TS/Go/.NET).
  • Expanded generated RPC and event models (e.g., instructions sources RPC, additional session event fields).
Show a summary per file
File Description
test/harness/package.json Bumps @github/copilot devDependency to ^1.0.32-0.
test/harness/package-lock.json Locks updated @github/copilot + platform optional dependencies to 1.0.32-0.
nodejs/package.json Bumps @github/copilot dependency to ^1.0.32-0.
nodejs/package-lock.json Locks updated @github/copilot + platform optional dependencies to 1.0.32-0.
nodejs/samples/package-lock.json Updates sample app lock to use @github/copilot ^1.0.32-0.
scripts/codegen/python.ts Adds a Python post-processor to unwrap redundant lambda x: f(x) wrappers in generated code.
nodejs/test/python-codegen.test.ts Updates/extends tests to assert redundant Python lambdas are collapsed.
nodejs/src/generated/session-events.ts Regenerated session event types (adds agentId, factors out working directory context types).
nodejs/src/generated/rpc.ts Regenerated RPC types + session RPC surface (adds instructions.getSources, refactors various schema-derived types).
go/rpc/generated_rpc.go Regenerated Go RPC bindings (adds instructions API surface; updates/renames generated types).
go/generated_session_events.go Regenerated Go session event models (context type reuse, new user message fields, deprecations).
dotnet/src/Generated/SessionEvents.cs Regenerated .NET session event models (context type reuse, new user message fields, deprecations).
dotnet/src/Generated/Rpc.cs Regenerated .NET RPC bindings (adds instructions API; refactors agent-related DTOs).

Copilot's findings

Files not reviewed (3)
  • nodejs/package-lock.json: Language not supported
  • nodejs/samples/package-lock.json: Language not supported
  • test/harness/package-lock.json: Language not supported
  • Files reviewed: 6/15 changed files
  • Comments generated: 3

/// <summary>Currently selected custom agent, or null if using the default agent.</summary>
[JsonPropertyName("agent")]
public AgentGetCurrentResultAgent? Agent { get; set; }
public AgentInfo Agent { get => field ??= new(); set; }
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

AgentGetCurrentResult.Agent is documented as "...or null if using the default agent", but the property is non-nullable and the getter forces a non-null value by instantiating a new AgentInfo when the backing field is null. This will silently turn a JSON null into an empty object and prevents callers from distinguishing "no custom agent". Make this property nullable (AgentInfo?) and remove the field ??= new() behavior so JSON null is preserved.

Suggested change
public AgentInfo Agent { get => field ??= new(); set; }
public AgentInfo? Agent { get; set; }

Copilot uses AI. Check for mistakes.
Comment thread go/rpc/generated_rpc.go
type AgentGetCurrentResult struct {
// Currently selected custom agent, or null if using the default agent
Agent *AgentGetCurrentResultAgent `json:"agent"`
Agent AgentGetCurrentResultAgent `json:"agent"`
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

AgentGetCurrentResult.Agent is declared as a non-pointer struct, but the doc comment states it can be null when using the default agent. If the RPC response contains JSON null, encoding/json will fail to unmarshal into a struct. Consider making this field a pointer (e.g., *AgentGetCurrentResultAgent) so null is representable and aligns with the documented contract.

Suggested change
Agent AgentGetCurrentResultAgent `json:"agent"`
Agent *AgentGetCurrentResultAgent `json:"agent"`

Copilot uses AI. Check for mistakes.
Comment on lines +859 to 861
// Working directory and git context at session start
type SessionContextChangedData struct {
// Current working directory path
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

The doc comment on SessionContextChangedData says "Working directory and git context at session start", but this type represents the payload for the session.context_changed event (i.e., the updated context after a change). The comment should be corrected to avoid misleading SDK consumers.

Copilot uses AI. Check for mistakes.
@stephentoub stephentoub deleted the update-copilot-1.0.32-0 branch April 17, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants