Skip to content

Update @github/copilot to 1.0.69#1941

Merged
stephentoub merged 4 commits into
mainfrom
update-copilot-1.0.69
Jul 8, 2026
Merged

Update @github/copilot to 1.0.69#1941
stephentoub merged 4 commits into
mainfrom
update-copilot-1.0.69

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.69.

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

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.69 and regenerates SDK wire-protocol types to match the updated schema across multiple languages.

Changes:

  • Bumped @github/copilot version from ^1.0.69-3 to ^1.0.69 in Node.js packages, the test harness, and Java codegen.
  • Regenerated RPC/schema-derived types across SDKs, including adding reloadExtensions to PluginsReloadRequest.
  • Updated dependency lockfiles to resolve to @github/copilot@1.0.69 and matching platform optional dependencies.
Show a summary per file
File Description
test/harness/package.json Bumps harness devDependency @github/copilot to ^1.0.69.
test/harness/package-lock.json Updates resolved @github/copilot tarball/integrity and optional platform packages to 1.0.69.
rust/src/generated/api_types.rs Regenerated Rust API types; adds reload_extensions to PluginsReloadRequest.
python/copilot/generated/rpc.py Regenerated Python RPC dataclasses; adds reload_extensions and (de)serialization support.
nodejs/src/generated/rpc.ts Regenerated TS RPC interfaces; adds reloadExtensions to PluginsReloadRequest.
nodejs/samples/package-lock.json Updates samples lockfile to pull @github/copilot@^1.0.69.
nodejs/package.json Bumps Node.js SDK dependency @github/copilot to ^1.0.69.
nodejs/package-lock.json Updates resolved @github/copilot tarball/integrity and optional platform packages to 1.0.69.
java/scripts/codegen/package.json Bumps Java codegen dependency @github/copilot to ^1.0.69.
java/scripts/codegen/package-lock.json Updates Java codegen lockfile to resolve @github/copilot@1.0.69.
java/pom.xml Updates the tracked reference-impl version property from ^1.0.69-3 to ^1.0.69.
go/rpc/zrpc.go Regenerated Go RPC types; adds ReloadExtensions and includes it in PluginsAPI.Reload request building.
dotnet/src/Generated/Rpc.cs Regenerated .NET RPC types; adds ReloadExtensions and wires it into ReloadAsync.

Review details

Files not reviewed (5)
  • go/rpc/zrpc.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/13 changed files
  • Comments generated: 2
  • Review effort level: Low

Comment thread go/rpc/zrpc.go
Comment thread dotnet/src/Generated/Rpc.cs
@github-actions

This comment has been minimized.

Use the pending permission hydration RPC after resuming a session instead of reusing the pre-suspend request ID, which can be stale after continuePendingWork resumes the prompt.

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

This comment has been minimized.

stephentoub and others added 2 commits July 8, 2026 06:45
Preserve the original permission request ID across resume, matching runtime behavior, but wait until the resumed session exposes that ID through pendingRequests before responding.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The runtime intends original permission request IDs to remain durable, but CI shows handling the pre-suspend ID can still return false after resume. Keep the SDK test on the respondable hydrated pending request ID and track the durable-ID mismatch as runtime follow-up.

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

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review

This PR adds the new reloadExtensions field to PluginsReloadRequest across 5 of 6 SDKs consistently:

SDK reloadExtensions added Optional reload params exposed
Node.js reloadExtensions?: boolean ✅ Full PluginsReloadRequest
Python reload_extensions: bool | None ✅ Full PluginsReloadRequest
Go ReloadExtensions *bool ✅ Full PluginsReloadRequest
.NET ReloadExtensions { get; set; } ✅ Full PluginsReloadRequest
Rust pub reload_extensions: Option<bool> ✅ Full PluginsReloadRequest
Java ❌ Not present reload() takes no params at all

🔍 Java Inconsistency

The Java SDK's SessionPluginsApi.reload() method accepts no optional parameters — it just injects sessionId and calls the RPC. This means Java users cannot control any of the reload flags that the other SDKs expose: reloadExtensions, reloadCustomAgents, reloadHooks, reloadMcp, or deferRepoHooks.

The generated SessionPluginsReloadParams.java only contains sessionId, while in every other SDK the equivalent type carries the full set of optional reload control flags.

This PR's description says Java types were regenerated, but the diff shows no changes to java/src/generated/java/. It appears the Java codegen either:

  • Is not following the $ref from the session.plugins.reload params to the standalone PluginsReloadRequest type, or
  • Is filtering out the optional fields at the codegen stage

Suggested Fix

Investigate the Java codegen (java/scripts/codegen/java.ts) to ensure it correctly picks up the optional fields from the PluginsReloadRequest schema ref. Once fixed, the generated SessionPluginsApi.reload() should accept a SessionPluginsReloadParams (or equivalent) that includes reloadExtensions, reloadCustomAgents, reloadHooks, reloadMcp, and deferRepoHooks — matching the other SDKs.

This is a pre-existing inconsistency, but since this PR is specifically updating the reloadExtensions field across SDKs, it's a good opportunity to close the gap for Java too.

Generated by SDK Consistency Review Agent for issue #1941 · sonnet46 1.7M ·

@stephentoub stephentoub added this pull request to the merge queue Jul 8, 2026
Merged via the queue into main with commit 7e29004 Jul 8, 2026
49 of 50 checks passed
@stephentoub stephentoub deleted the update-copilot-1.0.69 branch July 8, 2026 15:02
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