Skip to content

Update @github/copilot to 1.0.57-2#1517

Merged
stephentoub merged 5 commits into
mainfrom
update-copilot-1.0.57-2
May 30, 2026
Merged

Update @github/copilot to 1.0.57-2#1517
stephentoub merged 5 commits into
mainfrom
update-copilot-1.0.57-2

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.57-2.

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
@stephentoub stephentoub self-assigned this May 30, 2026
@stephentoub stephentoub marked this pull request as ready for review May 30, 2026 12:38
@stephentoub stephentoub requested a review from a team as a code owner May 30, 2026 12:38
Copilot AI review requested due to automatic review settings May 30, 2026 12:38
Comment thread dotnet/src/Generated/SessionEvents.cs Fixed
Comment thread python/copilot/generated/session_events.py Dismissed
Comment thread python/copilot/generated/rpc.py Dismissed
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 bump of the bundled @github/copilot CLI from 1.0.56 to 1.0.57-2, with regenerated RPC/session-event type bindings reflecting upstream schema changes (new attachments-push extension RPC and event, unified Attachment/ContextTier types, new runtime.shutdown RPC).

Changes:

  • Bump @github/copilot to ^1.0.57-2 in nodejs/, nodejs/samples/, and test/harness/ (plus lockfiles).
  • Regenerate Node, Python, Go, Rust, and .NET bindings: rename UserMessageAttachment*/SendAttachment* to unified Attachment/PushAttachment families (adding the new extension_context variant), collapse per-event *ContextTier enums into a single ContextTier, add SessionExtensionsAttachmentsPushed event and session.extensions.sendAttachmentsToMessage / runtime.shutdown RPCs.
  • Update generated docstrings for session.model.getCurrent.
Show a summary per file
File Description
nodejs/package.json, nodejs/package-lock.json, nodejs/samples/package-lock.json, test/harness/package.json, test/harness/package-lock.json CLI dependency version bump to 1.0.57-2
nodejs/src/generated/session-events.ts, nodejs/src/generated/rpc.ts Regenerated Node types: unified Attachment/PushAttachment, ContextTier, new event + RPCs
python/copilot/generated/session_events.py Regenerated Python types mirroring the schema changes
go/zsession_events.go, go/rpc/zsession_events.go, go/rpc/zsession_encoding.go, go/rpc/zrpc.go, go/rpc/zrpc_encoding.go Regenerated Go types, encoders, and RPC client methods
rust/src/generated/session_events.rs, rust/src/generated/rpc.rs Regenerated Rust types and RPC bindings
dotnet/src/Generated/SessionEvents.cs, dotnet/src/Generated/Rpc.cs Regenerated .NET types, polymorphic attachments, RPC APIs

Copilot's findings

Files not reviewed (8)
  • go/rpc/zrpc.go: Language not supported
  • go/rpc/zrpc_encoding.go: Language not supported
  • go/rpc/zsession_encoding.go: Language not supported
  • go/rpc/zsession_events.go: Language not supported
  • go/zsession_events.go: Language not supported
  • 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: 2/19 changed files
  • Comments generated: 1

Comment thread nodejs/package.json
stephentoub and others added 2 commits May 30, 2026 08:43
…n collisions

Follows up on #1515. Adds two pieces of generator hardening on top of the
conditional alias emit that #1515 introduced.

1. `collectGoSharedAnyOfDiscriminatorAliasNames`: detect shared anyOf
   unions with a string-const discriminator property and synthesize the
   discriminator enum name + per-variant const names so the public
   `copilot` alias file re-exports them alongside the union and variant
   structs. Without this, schema-shared discriminated unions like
   `Attachment` (in the bumped schema) would expose `copilot.Attachment`
   and its variant structs but not `copilot.AttachmentType` /
   `copilot.AttachmentTypeFile` etc.

2. `collectHandWrittenGoPublicNames`: scan hand-written `go/*.go` files
   for exported type/const names and exclude them from the alias file so
   schema-shared definitions that happen to share a name with a hand-written
   declaration (e.g. `ContextTier`) don't double-declare in the
   `copilot` package and break `go build`. Note from #1515 explicitly
   flagged `ContextTier` as out-of-scope; this handles it.

On the current 1.0.56 schema the only behavioural change is that the
public `copilot` package now also re-exports the
`UserToolSessionApprovalKind` discriminator enum and its 8 constants
(which the `rpc` package was already exporting). On the bumped 1.0.57+
schema this lets the generator succeed (no more
`assertNoGoRpcSessionEventConflicts` failure) and produces the expected
`Attachment*` alias surface while letting hand-written `ContextTier`
win.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove handwritten ContextTier definitions now owned by generated schema types, update Attachment type references, and keep generated outputs in sync.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

This comment has been minimized.

- Rust generator: merge crate::types imports in api_types.rs so the source matches what rustfmt produces on Linux (joining adjacent use crate::types::... lines). This unbreaks the Codegen Check on CI.
- Python: sort the import block in test_event_forward_compatibility.py to satisfy ruff I001.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅

This PR applies a codegen update (@github/copilot 1.0.57-2) with consistent changes across all SDK implementations (Node.js/TypeScript, Python, Go, .NET, Rust):

Change Node.js Python Go .NET Rust
UserMessageAttachment*Attachment* rename
SendAttachment*PushAttachment* (generated RPC)
ContextTier/ModelCurrentContextTier consolidation

All API surface changes are symmetrically applied. No cross-SDK consistency issues found.

Generated by SDK Consistency Review Agent for issue #1517 · ● 3.3M ·

Register shared API union decoders when generating Go session event payload unmarshalling so event data can decode attachments and approvals referenced from the API schema.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot mentioned this pull request May 30, 2026
@stephentoub stephentoub added this pull request to the merge queue May 30, 2026
Merged via the queue into main with commit c8f88c7 May 30, 2026
46 checks passed
@stephentoub stephentoub deleted the update-copilot-1.0.57-2 branch May 30, 2026 14:41
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