Skip to content

Update @github/copilot to 1.0.70-0#1954

Merged
SteveSandersonMS merged 2 commits into
mainfrom
update-copilot-1.0.70-0
Jul 9, 2026
Merged

Update @github/copilot to 1.0.70-0#1954
SteveSandersonMS merged 2 commits into
mainfrom
update-copilot-1.0.70-0

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

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

Changes

  • Updated @github/copilot in nodejs/package.json and test/harness/package.json
  • Re-ran all code generators (scripts/codegen)
  • Formatted generated output
  • Updated Java codegen dependency, POM property, and regenerated Java types

Java Handwritten Code Adaptation Plan

If java-sdk-tests CI fails on this PR, follow these steps:

  1. Identify failures: Run mvn clean, mvn verify from java/ locally or check the java-sdk-tests workflow run logs.
  2. Categorize errors:
    • Constructor signature changes (new fields added to generated records)
    • Enum value additions/renames in generated types
    • New event types requiring handler registration
    • Removed or renamed generated types
  3. Fix handwritten source (java/src/main/java/com/github/copilot/sdk/):
    • Update call sites passing positional constructor args to include new fields (typically null for optional new fields).
    • Update switch/if-else over enum values to handle new cases.
    • Register handlers for new event types in CopilotSession.java if applicable.
  4. Fix handwritten tests (java/src/test/java/com/github/copilot/sdk/):
    • Same constructor/enum fixes as above.
    • Add new test methods for new functionality if the change adds user-facing API surface.
  5. Validate: cd java && mvn clean test-compile jar:jar && mvn verify -Dskip.test.harness=true
  6. Format: cd java && mvn spotless:apply
  7. Push fixes to this PR branch.

To automate this, trigger the java-adapt-handwritten-code-to-accept-upgrade-changes agentic workflow instead.

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
@SteveSandersonMS SteveSandersonMS marked this pull request as ready for review July 9, 2026 12:47
@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner July 9, 2026 12:47
Copilot AI review requested due to automatic review settings July 9, 2026 12:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the monorepo’s pinned @github/copilot reference implementation to 1.0.70-0 and regenerates all language SDK wire types/RPC surfaces to match the updated schema, including new experimental events and RPCs.

Changes:

  • Bumped @github/copilot to ^1.0.70-0 across Node SDK + harness + samples, and Java codegen inputs.
  • Regenerated cross-SDK schema outputs (events, RPC types/methods), adding support for session.auto_mode_resolved, clientRequestId, commands.list, and session.sendMessages.
  • Updated MCP server start/restart request shapes across SDKs (restart config becomes optional; start/restart become publicly available in several SDKs).
Show a summary per file
File Description
test/harness/package.json Bumps harness devDependency on @github/copilot to 1.0.70-0.
test/harness/package-lock.json Locks harness transitive resolution to @github/copilot@1.0.70-0 and platform packages.
nodejs/package.json Bumps Node SDK dependency on @github/copilot to 1.0.70-0.
nodejs/package-lock.json Locks Node SDK transitive resolution to @github/copilot@1.0.70-0 and platform packages.
nodejs/samples/package-lock.json Updates samples lockfile to @github/copilot@^1.0.70-0.
nodejs/src/generated/session-events.ts Adds session.auto_mode_resolved event/types + clientRequestId on assistant messages + reasoning bucket type.
nodejs/src/generated/rpc.ts Adds commands.list, session.sendMessages, and updates MCP start/restart request types + session MCP APIs.
python/copilot/generated/session_events.py Adds SESSION_AUTO_MODE_RESOLVED event + data type + assistant client_request_id + reasoning bucket enum.
python/copilot/generated/rpc.py Adds commands.list API, session.send_messages, and MCP start/restart/public API adjustments + sendMessages types.
rust/src/generated/session_events.rs Adds SessionAutoModeResolved event/data + assistant client_request_id + reasoning bucket enum.
rust/src/generated/api_types.rs Adds RPC constants/types for commands.list + session.sendMessages and makes MCP start/restart request types public/optional config.
rust/src/generated/rpc.rs Adds ClientRpc.commands().list(), SessionRpc.send_messages(), and makes MCP start/restart methods public with updated docs.
go/zsession_events.go Re-exports newly generated session event/data types and reasoning bucket symbols.
go/rpc/zsession_events.go Adds session.auto_mode_resolved event type + assistant clientRequestId + new data/bucket types.
go/rpc/zsession_encoding.go Adds JSON decoding support for session.auto_mode_resolved event payload.
go/rpc/zrpc.go Adds commands.list API, session.sendMessages request/result/item types, and updates MCP start/restart request shapes + APIs.
go/rpc/zrpc_encoding.go Adds custom unmarshalling for MCP start/restart config shapes and SendMessageItem attachments.
dotnet/src/Generated/SessionEvents.cs Adds SessionAutoModeResolvedEvent/Data, assistant ClientRequestId, and reasoning bucket enum struct.
dotnet/src/Generated/Rpc.cs Adds Commands server API, SendMessagesAsync, and promotes MCP start/restart to public session MCP APIs with optional restart config.
java/pom.xml Updates Java-side property tracking the reference implementation version to ^1.0.70-0.
java/scripts/codegen/package.json Bumps Java codegen dependency on @github/copilot to 1.0.70-0.
java/scripts/codegen/package-lock.json Locks Java codegen transitive resolution to @github/copilot@1.0.70-0 and platform packages.
java/src/generated/java/com/github/copilot/generated/SessionEvent.java Registers the new session.auto_mode_resolved subtype in the sealed event hierarchy.
java/src/generated/java/com/github/copilot/generated/SessionAutoModeResolvedEvent.java Adds the new generated event class/record for session.auto_mode_resolved.
java/src/generated/java/com/github/copilot/generated/AutoModeResolvedReasoningBucket.java Adds new generated enum for reasoning bucket values.
java/src/generated/java/com/github/copilot/generated/AssistantMessageEvent.java Adds clientRequestId to assistant message event data.
java/src/generated/java/com/github/copilot/generated/rpc/SessionSendMessagesParams.java Adds generated params record for session.sendMessages.
java/src/generated/java/com/github/copilot/generated/rpc/SessionSendMessagesResult.java Adds generated result record for session.sendMessages.
java/src/generated/java/com/github/copilot/generated/rpc/SendMessageItem.java Adds generated message item record used by session.sendMessages.
java/src/generated/java/com/github/copilot/generated/rpc/SessionRpc.java Adds sendMessages(...) RPC method wrapper.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpStartServerParams.java Updates docs for MCP start server params to “configuration” wording.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpRestartServerParams.java Updates docs for MCP restart params to reflect optional replacement config.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpApi.java Updates MCP start/restart method docs to match new semantics.
java/src/generated/java/com/github/copilot/generated/rpc/ServerRpc.java Adds commands namespace API group exposure.
java/src/generated/java/com/github/copilot/generated/rpc/ServerCommandsApi.java Adds generated server-scoped commands.list API wrapper.
java/src/generated/java/com/github/copilot/generated/rpc/CommandsListResult.java Adds generated result type for commands.list.

Review details

Files not reviewed (9)
  • go/rpc/zrpc.go: Generated file
  • go/rpc/zrpc_encoding.go: Generated file
  • go/rpc/zsession_encoding.go: Generated file
  • go/rpc/zsession_events.go: Generated file
  • go/zsession_events.go: Generated file
  • java/scripts/codegen/package-lock.json: Generated file
  • nodejs/package-lock.json: Generated file
  • nodejs/samples/package-lock.json: Generated file
  • test/harness/package-lock.json: Generated file
  • Files reviewed: 4/36 changed files
  • Comments generated: 0
  • Review effort level: Low

@github-actions

This comment has been minimized.

The 1.0.70-0 update added a 'citations' component to the generated
AssistantMessageEvent.AssistantMessageEventData record, so the positional
constructor call in SessionEventHandlingTest needed an extra argument.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 75461183-93f3-4513-a504-4f755211178a
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅

This PR updates @github/copilot to 1.0.70-0 and re-runs code generators across all SDKs. I reviewed the new protocol surface for consistency across all six implementations.

New features introduced

Feature Node.js Go .NET Java Python Rust
session.sendMessages sendMessages() SendMessages() SendMessagesAsync() sendMessages() send_messages() send_messages()
session.mcp.startServer (now public) startServer() StartServer() StartServerAsync() startServer() start_server() start_server()
session.mcp.restartServer (now public) restartServer() RestartServer() RestartServerAsync() restartServer() restart_server() restart_server()
commands.list (server-level) Commands.List() commands.list() ServerCommandsApi.list()
session.auto_mode_resolved event
clientRequestId in AssistantMessageData

Notes

  • Python and Rust generated files were already up-to-date with these types from a prior codegen run; this PR brings Node.js, Go, .NET, and Java in line.
  • The McpRestartServerRequest.config is correctly marked optional across all SDKs; McpStartServerRequest.config is required — consistent throughout.
  • Java's handwritten test correctly updated the AssistantMessageEvent constructor to include the new clientRequestId field.

No consistency issues found. All new protocol features are represented uniformly across all six language SDKs with idiomatic naming conventions.

Generated by SDK Consistency Review Agent for issue #1954 · sonnet46 4.7M ·

@SteveSandersonMS SteveSandersonMS merged commit 611d9bd into main Jul 9, 2026
45 checks passed
@SteveSandersonMS SteveSandersonMS deleted the update-copilot-1.0.70-0 branch July 9, 2026 14:24

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

update-copilot-1.0.70-0

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.

3 participants