Update @github/copilot to 1.0.57-2#1517
Merged
Merged
Conversation
- Updated nodejs and test harness dependencies - Re-ran code generators - Formatted generated code
Contributor
There was a problem hiding this comment.
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/copilotto^1.0.57-2innodejs/,nodejs/samples/, andtest/harness/(plus lockfiles). - Regenerate Node, Python, Go, Rust, and .NET bindings: rename
UserMessageAttachment*/SendAttachment*to unifiedAttachment/PushAttachmentfamilies (adding the newextension_contextvariant), collapse per-event*ContextTierenums into a singleContextTier, addSessionExtensionsAttachmentsPushedevent andsession.extensions.sendAttachmentsToMessage/runtime.shutdownRPCs. - 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
…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>
This comment has been minimized.
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>
Contributor
Author
Cross-SDK Consistency Review ✅This PR applies a codegen update (
All API surface changes are symmetrically applied. No cross-SDK consistency issues found.
|
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>
stephentoub
approved these changes
May 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated update of
@github/copilotto version1.0.57-2.Changes
@github/copilotinnodejs/package.jsonandtest/harness/package.jsonscripts/codegen)Next steps
When ready, click Ready for review to trigger CI checks.