Skip to content

Update @github/copilot to 1.0.66#1859

Merged
stephentoub merged 3 commits into
mainfrom
update-copilot-1.0.66
Jun 30, 2026
Merged

Update @github/copilot to 1.0.66#1859
stephentoub merged 3 commits into
mainfrom
update-copilot-1.0.66

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.66.

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 30, 2026 19:15
@stephentoub stephentoub requested a review from a team as a code owner June 30, 2026 19:15
Copilot AI review requested due to automatic review settings June 30, 2026 19:15

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 pull request updates the monorepo’s pinned @github/copilot dependency to 1.0.66 and regenerates the SDKs’ schema-derived types/RPC surfaces so all language SDKs stay in sync with the updated wire protocol.

Changes:

  • Bumped @github/copilot from ^1.0.66-2^1.0.66 in Node packages (SDK + harness + Java codegen) and updated lockfiles.
  • Regenerated session event + RPC bindings across Rust, Python, Node/TS, Go, .NET, and Java to reflect new/renamed schema surfaces (e.g., session limits, completions APIs, new events).
  • Updated Java POM property used to mirror the reference implementation version.
Show a summary per file
File Description
test/harness/package.json Updates harness devDependency to @github/copilot@^1.0.66.
test/harness/package-lock.json Locks harness dependency graph to @github/copilot@1.0.66 and platform packages.
nodejs/package.json Updates Node SDK dependency to @github/copilot@^1.0.66.
nodejs/package-lock.json Locks Node SDK dependency graph to @github/copilot@1.0.66 and platform packages.
nodejs/samples/package-lock.json Updates sample lockfile to the new @github/copilot version.
nodejs/src/generated/session-events.ts Regenerates Node session-event types (session limits rename/new events/fields).
nodejs/src/generated/rpc.ts Regenerates Node RPC types + adds session.completions.* and new UI handler wiring.
python/copilot/generated/session_events.py Regenerates Python session-event models (session limits rename/new events/fields).
rust/src/generated/session_events.rs Regenerates Rust session-event models (session limits rename/new events/fields).
rust/src/generated/api_types.rs Updates Rust API types to reference new generated session-event types and new RPC method constants.
rust/src/generated/rpc.rs Adds Rust session-scoped completions RPC namespace + new UI handler method.
go/zsession_events.go Updates Go top-level type/const re-exports for regenerated rpc session-event types.
go/rpc/zsession_events.go Regenerates Go rpc session-event constants/types (limits + new events/fields).
go/rpc/zsession_encoding.go Updates Go session-event JSON decoding to handle new event variants and removals.
go/rpc/zrpc.go Regenerates Go RPC surface (adds completions APIs, session limits, adaptive thinking).
go/rpc/zrpc_encoding.go Updates Go RPC JSON decoding for updated option fields and new properties.
dotnet/src/Generated/SessionEvents.cs Regenerates .NET session-event types (limits rename/new events/fields).
dotnet/src/Generated/Rpc.cs Regenerates .NET RPC surface (completions APIs, session limits, adaptive thinking, UI handler).
java/pom.xml Updates Java reference-impl version property to ^1.0.66.
java/scripts/codegen/package.json Updates Java codegen dependency to @github/copilot@^1.0.66.
java/scripts/codegen/package-lock.json Locks Java codegen dependency graph to @github/copilot@1.0.66 and platform packages.
java/src/generated/java/com/github/copilot/generated/AssistantMessageEvent.java Adds reasoningWireField to generated Java session event payload.
java/src/generated/java/com/github/copilot/generated/SessionEvent.java Registers new/renamed generated Java session event subtypes.
java/src/generated/java/com/github/copilot/generated/SessionLimitsConfig.java Renames/updates generated Java limits config from response→session limits.
java/src/generated/java/com/github/copilot/generated/SessionLimitsExhaustedCompletedEvent.java Adds generated Java event for session-limits exhaustion completion.
java/src/generated/java/com/github/copilot/generated/SessionLimitsExhaustedRequestedEvent.java Adds generated Java event for session-limits exhaustion prompt.
java/src/generated/java/com/github/copilot/generated/SessionLimitsExhaustedResponse.java Adds generated Java response payload for limits-exhausted UI flow.
java/src/generated/java/com/github/copilot/generated/SessionLimitsExhaustedResponseAction.java Adds generated Java enum for limits-exhausted action values.
java/src/generated/java/com/github/copilot/generated/SessionResumeEvent.java Switches generated Java resume payload from responseLimitssessionLimits.
java/src/generated/java/com/github/copilot/generated/SessionSessionLimitsChangedEvent.java Renames generated Java event type to session.session_limits_changed.
java/src/generated/java/com/github/copilot/generated/SessionStartEvent.java Switches generated Java start payload from responseLimitssessionLimits.
java/src/generated/java/com/github/copilot/generated/SessionUsageCheckpointEvent.java Adds generated Java durable usage checkpoint event type.
java/src/generated/java/com/github/copilot/generated/rpc/AdaptiveThinkingSupport.java Adds generated Java RPC enum for adaptive-thinking support.
java/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverrideSupports.java Adds adaptive_thinking field in generated Java RPC model capability overrides.
java/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesSupports.java Adds adaptive_thinking field in generated Java RPC model capabilities.
java/src/generated/java/com/github/copilot/generated/rpc/SessionCompletionItem.java Adds generated Java RPC type for host-driven completion items.
java/src/generated/java/com/github/copilot/generated/rpc/SessionCompletionsApi.java Adds generated Java session.completions.* RPC API wrapper.
java/src/generated/java/com/github/copilot/generated/rpc/SessionCompletionsGetTriggerCharactersParams.java Adds generated Java RPC params type for completions trigger-character query.
java/src/generated/java/com/github/copilot/generated/rpc/SessionCompletionsGetTriggerCharactersResult.java Adds generated Java RPC result type for completions trigger-character query.
java/src/generated/java/com/github/copilot/generated/rpc/SessionCompletionsRequestParams.java Adds generated Java RPC params type for requesting completions.
java/src/generated/java/com/github/copilot/generated/rpc/SessionCompletionsRequestResult.java Adds generated Java RPC result type for requesting completions.
java/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogRegisterInterestParams.java Updates generated Java docs to include new gating event type.
java/src/generated/java/com/github/copilot/generated/rpc/SessionLimitsConfig.java Renames/updates generated Java RPC limits config from response→session limits.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSnapshotResult.java Switches generated Java RPC snapshot from responseLimitssessionLimits.
java/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateParams.java Adds excludedBuiltinAgents + switches from response→session limits in options update.
java/src/generated/java/com/github/copilot/generated/rpc/SessionRpc.java Adds generated Java completions namespace to session-scoped RPC root.
java/src/generated/java/com/github/copilot/generated/rpc/SessionUiApi.java Adds generated Java UI RPC method for handling session-limits exhaustion prompts.
java/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingSessionLimitsExhaustedParams.java Adds generated Java params type for the new UI handler RPC.
java/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingSessionLimitsExhaustedResult.java Adds generated Java result type for the new UI handler RPC.
java/src/generated/java/com/github/copilot/generated/rpc/UISessionLimitsExhaustedResponse.java Adds generated Java UI response payload for limits-exhausted flow.
java/src/generated/java/com/github/copilot/generated/rpc/UISessionLimitsExhaustedResponseAction.java Adds generated Java UI enum for limits-exhausted actions.

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

@github-actions

This comment has been minimized.

Update handwritten Java constructor calls for generated 1.0.66 RPC type shape changes.

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

This comment has been minimized.

Adapt test constructor calls to generated 1.0.66 schema additions.

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

Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅

This PR updates @github/copilot to v1.0.66 and regenerates code across all 6 SDK implementations. All changes are consistent across Node.js, Python, Go, .NET, Java, and Rust.

Changes verified across all SDKs

Change Node.js Python Go .NET Java Rust
ResponseLimitsConfigSessionLimitsConfig rename
session.response_limits_changedsession.session_limits_changed event
New session.usage_checkpoint event
New session_limits_exhausted.requested/completed events
New AdaptiveThinkingSupport enum in ModelCapabilitiesSupports
New Completions API (completions.getTriggerCharacters, completions.request)
New UISessionLimitsExhaustedResponse + handlePendingSessionLimitsExhausted
New excludedBuiltinAgents in session options
New reasoningWireField in AssistantMessageData

Java handwritten code adaptations

The Java handwritten code in CopilotClient.java and CopilotSession.java has been correctly adapted:

  • Added null // excludedBuiltinAgents in the SessionOptionsUpdateParams constructor call (correct position)
  • Updated ModelCapabilitiesOverrideSupports constructor to pass null for the new adaptiveThinking field
  • Updated comment from responseBudgetsessionLimits to match the renamed field
  • Test constructors updated for the new reasoningWireField in AssistantMessageEvent

No consistency issues found. All SDK implementations are aligned with the updated schema.

Generated by SDK Consistency Review Agent for issue #1859 · sonnet46 3M ·

@stephentoub stephentoub added this pull request to the merge queue Jun 30, 2026
Merged via the queue into main with commit cc66206 Jun 30, 2026
43 checks passed
@stephentoub stephentoub deleted the update-copilot-1.0.66 branch June 30, 2026 20:39
MackinnonBuck added a commit that referenced this pull request Jun 30, 2026
Brings in the @github/copilot 1.0.66 bump (#1859), which re-ran the code
generators and added new RPC/session types (SessionLimits*, SessionCompletions,
AdaptiveThinkingSupport, etc.).

Conflicts were limited to generated files (dotnet Rpc.cs, python rpc.py).
Resolved by installing 1.0.66 and re-running `scripts/codegen` with the
telemetry schema overlay, so every generated file is a consistent product of
the 1.0.66 schema plus the experimental GitHub telemetry additions rather than
a hand-merged blend. Verified 1.0.66 still does not ship the telemetry types,
so the overlay remains required. Codegen is idempotent (re-running produces no
diff) and the hand-written telemetry glue (including the Node conditional-spread
opt-in) is unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
edburns pushed a commit that referenced this pull request Jul 1, 2026
* Update @github/copilot to 1.0.66 (#1859)

* Update @github/copilot to 1.0.66

- Updated nodejs and test harness dependencies
- Re-ran code generators
- Formatted generated code

* Adapt Java handwritten code to generated schema

Update handwritten Java constructor calls for generated 1.0.66 RPC type shape changes.

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

* Update Java tests for generated type arity

Adapt test constructor calls to generated 1.0.66 schema additions.

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

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Initial plan

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
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