Skip to content

Update @github/copilot to 1.0.81-11 - #2409

Open
github-actions[bot] wants to merge 5 commits into
mainfrom
update-copilot-1.0.81-11
Open

Update @github/copilot to 1.0.81-11#2409
github-actions[bot] wants to merge 5 commits into
mainfrom
update-copilot-1.0.81-11

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.81-11.

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/sdk/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/sdk/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.

@stephentoub
stephentoub marked this pull request as ready for review August 26, 2026 11:54
@stephentoub
stephentoub requested a review from a team as a code owner August 26, 2026 11:54
Copilot AI balanced review requested due to automatic review settings August 26, 2026 11:54
@stephentoub
stephentoub enabled auto-merge August 26, 2026 11:55
@github-actions

This comment has been minimized.

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 Copilot CLI dependency to 1.0.81-11 and synchronizes generated protocol types across SDKs.

Changes:

  • Updates npm dependencies and lockfiles.
  • Regenerates session and RPC types for idle modes, permission metadata, and CPU telemetry.
  • Updates Java codegen metadata.
Show a summary per file
File Description
test/harness/package.json Updates harness dependency.
test/harness/package-lock.json Locks updated runtime binaries.
rust/src/generated/session_events.rs Adds idle-session mode.
rust/src/generated/api_types.rs Adds telemetry and permission types.
python/copilot/generated/session_events.py Adds idle-session mode.
python/copilot/generated/rpc.py Adds telemetry and permission types.
nodejs/src/generated/session-events.ts Adds idle-session mode.
nodejs/src/generated/rpc.ts Adds telemetry and permission types.
nodejs/samples/package-lock.json Updates sample dependency metadata.
nodejs/package.json Updates runtime dependency.
nodejs/package-lock.json Locks updated runtime binaries.
java/sdk/src/generated/java/com/github/copilot/generated/SessionIdleEvent.java Adds idle-session mode.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/PermissionResponseCapability.java Adds permission capability enum.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionSurface.java Adds ACP surface.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionContext.java Adds response capability.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/GitHubTelemetryClientInfo.java Adds CPU telemetry fields.
java/scripts/codegen/package.json Updates codegen dependency.
java/scripts/codegen/package-lock.json Locks updated codegen runtime.
java/pom.xml Updates reference implementation version.
go/rpc/zsession_events.go Adds idle-session mode.
go/rpc/zrpc.go Adds telemetry and permission types.
dotnet/src/Generated/SessionEvents.cs Adds idle-session mode.
dotnet/src/Generated/Rpc.cs Adds telemetry and permission types.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Files not reviewed (5)
  • go/rpc/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: 5/23 changed files
  • Comments generated: 4
  • Review effort level: Balanced

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

This comment has been minimized.

@github-actions

This comment has been minimized.

@stephentoub

Copy link
Copy Markdown
Collaborator

Addressed the cross-SDK consistency finding in 5d5b5fb: Node.js, Python, Java, and Rust now skip autopilot continuation idle events in send-and-wait, with regression coverage for each SDK.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@stephentoub

Copy link
Copy Markdown
Collaborator

Addressed the latest cross-SDK consistency finding in 750d0c5: PermissionResponseCapability is now exported from the Node.js and Python package roots, with focused public-import coverage.

@github-actions

This comment has been minimized.

@edburns edburns left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Java changes LGTM.

@stephentoub
stephentoub added this pull request to the merge queue Aug 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 26, 2026
@stephentoub
stephentoub added this pull request to the merge queue Aug 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 26, 2026
@stephentoub
stephentoub added this pull request to the merge queue Aug 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 26, 2026
@stephentoub
stephentoub added this pull request to the merge queue Aug 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 26, 2026
@stephentoub
stephentoub added this pull request to the merge queue Aug 26, 2026
@stephentoub
stephentoub removed this pull request from the merge queue due to a manual request Aug 26, 2026
github-actions Bot and others added 5 commits August 26, 2026 13:50
- Updated nodejs and test harness dependencies
- Re-ran code generators
- Formatted generated code
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@stephentoub
stephentoub force-pushed the update-copilot-1.0.81-11 branch from 750d0c5 to 5535008 Compare August 26, 2026 20:56
@github-actions

Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅ (with one minor gap)

This PR updates @github/copilot to 1.0.81-11 and propagates changes across all 6 SDK implementations. The two main handwritten changes are well-applied across SDKs:

1. session.idle autopilot mode filter — ✅ Consistent across all SDKs

All six SDKs correctly ignore session.idle events when mode == "autopilot", preventing premature resolution of sendAndWait/send_and_wait:

SDK Implementation
Node.js event.data.mode !== "autopilot"
Python data.mode != SessionMode.AUTOPILOT
Go *d.Mode == SessionModeAutopilot guard
.NET idleEvent.Data.Mode != SessionMode.Autopilot pattern match
Java idleEvent.getData().mode() != SessionMode.AUTOPILOT
Rust is_autopilot_continuation_idle() helper + early-continue arm

2. PermissionResponseCapability new type — ⚠️ Missing Rust public re-export

This new type is publicly exported from Node.js, Python, and Go, but Rust's types.rs does not add PermissionResponseCapability to its pub use crate::generated::api_types::{...} block.

Since PermissionDecisionContext.response_capability: Option<PermissionResponseCapability> is now part of the struct, Rust users constructing a PermissionDecisionContext (e.g., via PermissionResult::approve_once().with_context(...)) will need to import the type from the internal path copilot_sdk::generated::api_types::PermissionResponseCapability rather than the stable public API path.

Suggested fix in rust/src/types.rs — add PermissionResponseCapability to the existing re-export block:

pub use crate::generated::api_types::{
    Model, ModelBilling, ModelBillingTokenPrices, ModelBillingTokenPricesLongContext,
    ModelCapabilities, ModelCapabilitiesLimits, ModelCapabilitiesLimitsVision,
    ModelCapabilitiesSupports, ModelList, ModelPolicy, PermissionDecision,
    PermissionDecisionApproveOnce, PermissionDecisionContext, PermissionDecisionOutcome,
    PermissionDecisionReject, PermissionDecisionSource, PermissionDecisionSurface,
    PermissionDecisionUserNotAvailable, PermissionResponseCapability,  // ← add this
};

3. PermissionDecisionSurfaceAcp — ✅ Consistent

The new "acp" surface value is present in all generated files and Go adds a named constant PermissionDecisionSurfaceAcp for discoverability (matching the existing pattern for other surface constants). Other SDKs surface it as-is through their generated types (TypeScript union string, Python enum, Rust enum variant). No gaps here.

Generated by SDK Consistency Review Agent for #2409 · sonnet46 82.3 AIC · ⌖ 5.69 AIC · ⊞ 6.6K ·

@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 #2409 · sonnet46 82.3 AIC · ⌖ 5.69 AIC · ⊞ 6.6K

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.

3 participants