Skip to content

Update @github/copilot to 1.0.68#1886

Merged
stephentoub merged 1 commit into
mainfrom
update-copilot-1.0.68
Jul 2, 2026
Merged

Update @github/copilot to 1.0.68#1886
stephentoub merged 1 commit into
mainfrom
update-copilot-1.0.68

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.68.

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 July 2, 2026 02:08
@stephentoub stephentoub requested a review from a team as a code owner July 2, 2026 02:08
Copilot AI review requested due to automatic review settings July 2, 2026 02:08

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.68 and regenerates the multi-language RPC/type surfaces from the updated schema so each SDK stays in sync with the CLI wire protocol.

Changes:

  • Bumped @github/copilot to ^1.0.68 across Node packages and the shared test harness.
  • Regenerated RPC/type bindings across Node/TS, Python, Go, Rust, .NET, and Java (including new metadata context-attribution APIs and slash-command input choices).
  • Updated Java’s codegen dependency lockfiles and Maven property to track the new reference implementation version.
Show a summary per file
File Description
test/harness/package.json Bumps harness dev dependency on @github/copilot to ^1.0.68.
test/harness/package-lock.json Updates resolved @github/copilot 1.0.68 artifacts and platform optional deps for the harness.
rust/src/generated/rpc.rs Regenerated Rust RPC client methods (adds context attribution/heaviest-messages; removes spawned-sessions polling).
rust/src/generated/api_types.rs Regenerated Rust wire constants/types to match new schema additions/removals.
python/copilot/generated/rpc.py Regenerated Python RPC/types (adds context attribution/heaviest-messages + new schema structs; removes poll-spawned-sessions).
nodejs/src/generated/rpc.ts Regenerated TS RPC/types (adds attribution/heaviest-messages + new schema types; removes poll-spawned-sessions).
nodejs/samples/package-lock.json Updates sample lockfile to @github/copilot ^1.0.68.
nodejs/package.json Bumps Node SDK dependency on @github/copilot to ^1.0.68.
nodejs/package-lock.json Updates resolved @github/copilot 1.0.68 artifacts and platform optional deps for Node SDK.
java/src/generated/java/com/github/copilot/generated/rpc/SlashCommandInputChoice.java Adds new Java generated type for slash-command input literal choices.
java/src/generated/java/com/github/copilot/generated/rpc/SlashCommandInput.java Extends slash-command input schema to include choices.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataGetContextHeaviestMessagesResult.java Adds new Java generated result type for heaviest-context-messages query.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataGetContextHeaviestMessagesParams.java Adds/renames Java generated params record for heaviest-messages query.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataGetContextAttributionResult.java Adds new Java generated result type for context-attribution breakdown.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataGetContextAttributionParams.java Adds new Java generated params record for attribution query.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataApi.java Adds new Java session-metadata RPC wrappers for attribution/heaviest-messages.
java/src/generated/java/com/github/copilot/generated/rpc/ServerSessionsApi.java Removes Java server-sessions polling API that no longer exists in schema.
java/src/generated/java/com/github/copilot/generated/rpc/ContextHeaviestMessage.java Adds new Java generated type describing a single large context message.
java/scripts/codegen/package.json Bumps Java codegen’s @github/copilot dependency to ^1.0.68.
java/scripts/codegen/package-lock.json Updates resolved @github/copilot 1.0.68 artifacts for Java codegen.
java/pom.xml Updates Java reference implementation version property to ^1.0.68.
go/rpc/zrpc.go Regenerated Go RPC/types (adds attribution/heaviest-messages + new schema structs; removes poll-spawned-sessions).
go/rpc/zrpc_encoding.go Updates Go JSON decoding for new toolReferences field in tool results.
dotnet/src/Generated/Rpc.cs Regenerated .NET RPC/types and public APIs for new metadata endpoints and new schema types; removes poll-spawned-sessions.

Review details

Files not reviewed (6)
  • go/rpc/zrpc.go: Generated file
  • go/rpc/zrpc_encoding.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/24 changed files
  • Comments generated: 0
  • Review effort level: Low

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅

Reviewed the generated code changes across all 6 SDK implementations (Node.js/TypeScript, Python, Go, .NET, Java, Rust).

Changes detected in this PR

Change Node.js Python Go .NET Java Rust
Removed pollSpawnedSessions
Added getContextAttribution
Added getContextHeaviestMessages
Added SlashCommandInputChoice type
Added ContextHeaviestMessage type
Added MetadataContextAttributionResult type

Findings

All changes are applied consistently across all SDK implementations. The new metadata API methods (getContextAttribution / getContextHeaviestMessages) follow correct language conventions:

  • TypeScript/Java: getContextAttribution (camelCase)
  • Python/Rust: get_context_attribution (snake_case)
  • Go/.NET: GetContextAttribution (PascalCase)

No handwritten SDK code references the removed pollSpawnedSessions types, and no additional adaptation is needed in non-generated files.

No cross-SDK consistency issues found. 🎉

Generated by SDK Consistency Review Agent for issue #1886 · sonnet46 2.1M ·

@stephentoub stephentoub added this pull request to the merge queue Jul 2, 2026
Merged via the queue into main with commit 50f73ac Jul 2, 2026
71 checks passed
@stephentoub stephentoub deleted the update-copilot-1.0.68 branch July 2, 2026 12:52
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