Skip to content

Update @github/copilot to 1.0.64-1#1739

Open
github-actions[bot] wants to merge 8 commits into
mainfrom
update-copilot-1.0.64-1
Open

Update @github/copilot to 1.0.64-1#1739
github-actions[bot] wants to merge 8 commits into
mainfrom
update-copilot-1.0.64-1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.64-1.

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
@stephentoub stephentoub marked this pull request as ready for review June 20, 2026 02:56
@stephentoub stephentoub requested a review from a team as a code owner June 20, 2026 02:56
Copilot AI review requested due to automatic review settings June 20, 2026 02:56
Comment thread python/copilot/generated/session_events.py

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 dependency to 1.0.64-1 and propagates the new upstream schemas through the repo’s language-specific code generators (Node/TS, Rust, Go, .NET, Java), resulting in regenerated RPC/session-event types and updated lockfiles.

Changes:

  • Bumped @github/copilot to ^1.0.64-1 across Node packages and Java codegen inputs (plus lockfile refreshes).
  • Regenerated SDK protocol surfaces to match updated schemas (notably: experimental citations, llmInference.* RPCs, MCP OAuth handlePendingRequest, and attachment binary-asset persistence fields).
  • Updated Java generated types and APIs (new records/enums + updated generated RPC namespace wiring) and refreshed the Java POM property that mirrors the reference implementation version.
Show a summary per file
File Description
test/harness/package.json Bump harness devDependency on @github/copilot to ^1.0.64-1.
test/harness/package-lock.json Lockfile update for @github/copilot@1.0.64-1 and transitive changes.
rust/src/generated/session_events.rs Regenerated session-event types (citations, MCP OAuth additions, schema shape tweaks).
rust/src/generated/rpc.rs Regenerated Rust RPC client (adds llmInference.*, MCP OAuth handlePendingRequest).
rust/src/generated/api_types.rs Regenerated Rust API types/constants (new methods, attachment schema updates, etc.).
nodejs/src/generated/session-events.ts Regenerated TS session-event types (citations, MCP OAuth additions, attachment updates).
nodejs/src/generated/rpc.ts Regenerated TS RPC types + RPC builders (adds llmInference.*, MCP OAuth handlePendingRequest).
nodejs/samples/package-lock.json Sample lockfile updated to @github/copilot ^1.0.64-1.
nodejs/package.json Bump Node SDK dependency on @github/copilot to ^1.0.64-1.
nodejs/package-lock.json Node SDK lockfile update for @github/copilot@1.0.64-1 and transitive changes.
java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteResult.java Adds citableSources to tool result payload.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthHandlePendingRequestResult.java New generated result record for MCP OAuth pending handling.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthHandlePendingRequestParams.java New generated params record for MCP OAuth pending handling.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthApi.java Adds handlePendingRequest API method to session MCP OAuth wrapper.
java/src/generated/java/com/github/copilot/generated/rpc/ServerRpc.java Wires new server-scoped llmInference namespace.
java/src/generated/java/com/github/copilot/generated/rpc/ServerLlmInferenceApi.java New generated llmInference.* server-scoped API wrapper.
java/src/generated/java/com/github/copilot/generated/rpc/SandboxConfig.java Schema shape change: sandbox config becomes Object instead of Map.
java/src/generated/java/com/github/copilot/generated/rpc/ModelBillingTokenPricesLongContext.java Adds cache read/write price fields + deprecation wording for old fields.
java/src/generated/java/com/github/copilot/generated/rpc/ModelBillingTokenPrices.java Adds cache read/write price fields + maxPromptTokens and deprecation wording.
java/src/generated/java/com/github/copilot/generated/rpc/LlmInferenceSetProviderResult.java New generated result record for llmInference.setProvider.
java/src/generated/java/com/github/copilot/generated/rpc/LlmInferenceHttpResponseStartResult.java New generated result record for llmInference.httpResponseStart.
java/src/generated/java/com/github/copilot/generated/rpc/LlmInferenceHttpResponseStartParams.java New generated params record for llmInference.httpResponseStart.
java/src/generated/java/com/github/copilot/generated/rpc/LlmInferenceHttpResponseChunkResult.java New generated result record for llmInference.httpResponseChunk.
java/src/generated/java/com/github/copilot/generated/rpc/LlmInferenceHttpResponseChunkParams.java New generated params record for llmInference.httpResponseChunk.
java/src/generated/java/com/github/copilot/generated/rpc/LlmInferenceHttpResponseChunkError.java New generated error record used in llmInference.httpResponseChunk.
java/src/generated/java/com/github/copilot/generated/ModelCallFailureEvent.java Adds structured 400-failure diagnostics fields to model failure event.
java/src/generated/java/com/github/copilot/generated/ModelCallFailureBadRequestKind.java New enum for 400 bad-request classification.
java/src/generated/java/com/github/copilot/generated/McpOauthWWWAuthenticateParams.java New record for parsed OAuth challenge params.
java/src/generated/java/com/github/copilot/generated/McpOauthRequiredEvent.java Expands OAuth-required event payload with metadata + WWW-Authenticate params.
java/src/generated/java/com/github/copilot/generated/McpOauthCompletionOutcome.java New enum for OAuth completion outcome.
java/src/generated/java/com/github/copilot/generated/McpOauthCompletedEvent.java Adds OAuth completion outcome field.
java/src/generated/java/com/github/copilot/generated/CitationSpan.java New generated citation type.
java/src/generated/java/com/github/copilot/generated/CitationSource.java New generated citation type.
java/src/generated/java/com/github/copilot/generated/Citations.java New generated citation container type.
java/src/generated/java/com/github/copilot/generated/CitationReference.java New generated citation type.
java/src/generated/java/com/github/copilot/generated/CitationProvider.java New generated enum for citation providers.
java/src/generated/java/com/github/copilot/generated/CitableSource.java New generated tool-provided citable source type.
java/src/generated/java/com/github/copilot/generated/CanvasRegistryChangedCanvasAction.java Schema shape change: inputSchema becomes Object.
java/src/generated/java/com/github/copilot/generated/CanvasRegistryChangedCanvas.java Schema shape change: inputSchema becomes Object.
java/src/generated/java/com/github/copilot/generated/AssistantMessageEvent.java Adds citations field to assistant message event payload.
java/scripts/codegen/package.json Bumps codegen-time @github/copilot dependency to ^1.0.64-1.
java/scripts/codegen/package-lock.json Lockfile update for Java codegen dependencies.
java/pom.xml Updates the read-only mirrored ref-impl version property to ^1.0.64-1.
go/zsession_events.go Updates Go public aliases for newly generated RPC/session-event types.
go/rpc/zsession_events.go Regenerated Go session-event structs/types (citations, MCP OAuth additions, etc.).
go/rpc/zsession_encoding.go Regenerated Go JSON encoding/decoding helpers (citation location union, etc.).
go/rpc/zrpc.go Regenerated Go RPC types/APIs (adds llmInference server API, MCP OAuth pending handling).
go/rpc/zrpc_encoding.go Regenerated Go RPC JSON encoding/decoding helpers (MCP OAuth pending response union, etc.).
dotnet/src/Generated/Rpc.cs Regenerated .NET RPC/types (adds llmInference APIs, MCP OAuth pending handling, pricing fields, citations types).

Copilot's findings

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/52 changed files
  • Comments generated: 0

@github-actions

This comment has been minimized.

1.0.64-1 makes @github/copilot a thin loader; the runnable index.js, sdk/,
schemas, and native binary moved into platform packages
(@github/copilot-<platform>-<arch>, exactly one installed). Update all CLI
path resolution to the platform package's index.js (Java uses the loader's
npm-loader.js since Maven properties cannot glob). Also fix downstream type
changes: SQLite params -> unknown, AssistantMessageEventData gains citations,
and Go AttachmentBlob.Data -> *string.

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

This comment has been minimized.

Comment thread dotnet/test/Harness/E2ETestContext.cs Fixed
Comment thread dotnet/test/Harness/E2ETestContext.cs Fixed
Comment thread dotnet/test/Harness/E2ETestContext.cs Fixed
Use Path.Join instead of Path.Combine (never silently drops rooted
arguments) and replace the foreach scan with a LINQ Select +
FirstOrDefault when locating the platform package's index.js.

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

This comment has been minimized.

@rotationtv1-crypto

Copy link
Copy Markdown

Pr

stephentoub and others added 2 commits June 20, 2026 09:22
Format the Node client and update the Go billing test to assert the non-deprecated maxPromptTokens field.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the regenerated enabled parameter name for session.permissions.urls.setUnrestrictedMode.

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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Generated by SDK Consistency Review Agent for issue #1739 · sonnet46 5.1M

Comment thread java/src/test/java/com/github/copilot/E2ETestContext.java Outdated
The nodejs-installation fallback in the Java test harness pointed at
@github/copilot/npm-loader.js, which spawns the platform-specific native
binary. The Go, Python, Rust, and .NET harnesses instead glob the installed
@github/copilot-<platform> package and run its index.js under Node.js, the
documented preferred entry point. Switch the Java fallback to the same
copilot-* glob for cross-SDK consistency and resilience.

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

This comment has been minimized.

The bundled CLI 1.0.64-1 gates third-party MCP servers behind the copilot
user's is_mcp_enabled flag: a null/missing value disables them. The e2e
harnesses register a per-token copilot user that omitted is_mcp_enabled, so
the new runtime skipped non-default MCP servers (e.g. meta-echo). That made
the model report the MCP tool as nonexistent, so the next /chat/completions
request no longer matched a recorded snapshot and the replay proxy returned
HTTP 500 (surfacing as CAPIError: 500 Proxy error), failing every MCP e2e
test that exercises a third-party server.

Default is_mcp_enabled to true when serving /copilot_internal/user for a
registered token (explicit values still win), mirroring the connect-proxy
mock. One shared change fixes the e2e harness for all language SDKs.

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

This comment has been minimized.

The 1.0.64-1 CLI gates MCP enablement on a GitHub API call (the MCP registry policy check via /copilot/mcp_registry, plus the /copilot_internal/user lookup that carries copilot_plan and is_mcp_enabled). The Node/Go/Python/.NET/Java e2e harnesses only redirected COPILOT_API_URL to the replay proxy, so these GitHub API calls escaped to the real api.github.com. On macOS CI runners that egress is slow/unreachable, so MCP policy resolution stalled and every MCP server timed out before reaching connected (macOS-only failures; ubuntu/windows reach api.github.com fast enough to pass).

The Rust e2e harness already sets COPILOT_DEBUG_GITHUB_API_URL to the proxy and passes on macOS with the identical CLI and identical MCP lifecycle tests. Mirror that here so the GitHub API calls are served hermetically by the replay proxy: the CLI then reads copilot_plan=individual_pro, the MCP policy resolver short-circuits to allow-all, and the registry-policy network call is never made.

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

Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅

Reviewed PR #1739 (Update @github/copilot to 1.0.64-1) across all six SDK implementations. The changes are consistent and well-coordinated.

Changes Made

1. Platform-specific CLI package discovery (all harnesses updated consistently)

As of 1.0.64-1, @github/copilot is a thin loader and the actual CLI ships in a platform-specific package (e.g. @github/copilot-linux-x64). All six SDK test harnesses and the CI setup action were updated to glob/enumerate for copilot-* packages instead of looking at a fixed @github/copilot/index.js path:

SDK File Updated
Node.js nodejs/src/client.ts (runtime), test/e2e/harness/sdkTestContext.ts
Go go/internal/e2e/testharness/context.go
.NET dotnet/test/Harness/E2ETestContext.cs
Python python/e2e/testharness/context.py
Rust rust/tests/e2e/support.rs
Java java/src/test/java/com/github/copilot/E2ETestContext.java
CI .github/actions/setup-copilot/action.yml

2. COPILOT_DEBUG_GITHUB_API_URL added to base test contexts

This variable routes GitHub API calls to the replay proxy for hermetic tests. It was already present in Rust's harness; this PR adds it to the default environment in Node.js, Go, .NET, Python, and Java base test contexts — now consistent across all SDKs.

3. Generated types updated in all SDKs

New types (Citations, McpOauthCompletionOutcome, ModelCallFailureBadRequestKind, LlmInferenceHttp*, etc.) were regenerated in all SDK languages from the updated schema. This is automated and consistent by design.

4. nodejs/src/sessionFsProvider.ts — minor TypeScript type widening

This is a TypeScript-only internal change (Record<string, string | number | null | undefined>Record<string, unknown>) with no API surface change. No cross-language equivalent needed.

Conclusion

No consistency gaps found. All applicable SDKs have been updated in parallel with equivalent logic. 👍

Generated by SDK Consistency Review Agent for issue #1739 · sonnet46 1.8M ·

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.

5 participants