Skip to content

Update @github/copilot to 1.0.78 - #2239

Merged
stephentoub merged 1 commit into
mainfrom
update-copilot-1.0.78
Aug 4, 2026
Merged

Update @github/copilot to 1.0.78#2239
stephentoub merged 1 commit into
mainfrom
update-copilot-1.0.78

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.78.

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 August 4, 2026 00:23
@stephentoub
stephentoub requested a review from a team as a code owner August 4, 2026 00:23
Copilot AI review requested due to automatic review settings August 4, 2026 00:23

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

Updates the bundled Copilot runtime to stable version 1.0.78 and regenerates SDK wire-protocol surfaces.

Changes:

  • Updates npm dependencies and lockfiles.
  • Adds clearContext, session.context_cleared, and plugin source fingerprints across SDKs.
  • Refreshes generated API documentation and event types.
Show a summary per file
File Description
test/harness/package.json Updates harness dependency.
test/harness/package-lock.json Locks runtime and platform packages.
rust/src/generated/session_events.rs Adds context-cleared event types.
rust/src/generated/rpc.rs Adds clear-context RPC.
rust/src/generated/api_types.rs Adds RPC and plugin schema types.
python/copilot/generated/session_events.py Adds context-cleared event support.
python/copilot/generated/rpc.py Adds RPC and plugin fields.
nodejs/src/generated/session-events.ts Adds context-cleared event interfaces.
nodejs/src/generated/rpc.ts Adds clear-context RPC and plugin fields.
nodejs/samples/package-lock.json Updates sample dependency metadata.
nodejs/package.json Updates runtime dependency.
nodejs/package-lock.json Locks stable runtime packages.
java/src/generated/java/com/github/copilot/generated/SessionModelChangeEvent.java Updates cause documentation.
java/src/generated/java/com/github/copilot/generated/SessionEvent.java Registers context-cleared events.
java/src/generated/java/com/github/copilot/generated/SessionContextClearedEvent.java Adds the new event class.
java/src/generated/java/com/github/copilot/generated/rpc/SessionInstalledPlugin.java Adds source fingerprint.
java/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryClearContextResult.java Adds clear result type.
java/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryClearContextParams.java Adds clear parameters.
java/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryApi.java Exposes clear-context RPC.
java/src/generated/java/com/github/copilot/generated/rpc/InstalledPlugin.java Adds source fingerprint.
java/scripts/codegen/package.json Updates codegen dependency.
java/scripts/codegen/package-lock.json Locks stable codegen runtime.
java/pom.xml Updates reference implementation version.
go/zsession_events.go Re-exports context-cleared types.
go/rpc/zsession_events.go Adds context-cleared event data.
go/rpc/zsession_encoding.go Decodes the new event.
go/rpc/zrpc.go Adds RPC and plugin fields.
dotnet/src/Generated/SessionEvents.cs Adds context-cleared event models.
dotnet/src/Generated/Rpc.cs Adds clear-context RPC and plugin fields.

Review details

Files not reviewed (8)
  • go/rpc/zrpc.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/29 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅

This PR is an automated code generation update (@github/copilot1.0.78) and maintains full cross-SDK consistency across all six language implementations.

Changes applied consistently across all SDKs

Feature Node.js Python Go .NET Java Rust
HistoryClearContextRequest type
HistoryClearContextResult type
clearContext / ClearContext / clear_context RPC method ✅ (type only)
session.context_cleared event type
InstalledPlugin.source_sha field
SessionInstalledPlugin.source_sha field
SessionModelChangeData.cause doc update (refusal_fallback)

API naming follows language conventions

  • Node.js/TypeScript: clearContext (camelCase) ✅
  • Python: types added; RPC method exposed through generated type registry ✅
  • Go: ClearContext (PascalCase exported method) ✅
  • .NET: ClearContextAsync (PascalCase + Async suffix) ✅
  • Java: clearContext (camelCase) ✅
  • Rust: clear_context (snake_case) ✅

No consistency issues found. All new types and methods are appropriately marked @experimental / [Experimental] across all SDKs.

Generated by SDK Consistency Review Agent for #2239 · sonnet46 41.7 AIC · ⌖ 5.54 AIC · ⊞ 6.6K ·

@stephentoub
stephentoub added this pull request to the merge queue Aug 4, 2026
Merged via the queue into main with commit 2e88dbd Aug 4, 2026
115 of 117 checks passed
@stephentoub
stephentoub deleted the update-copilot-1.0.78 branch August 4, 2026 01:49
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