Update @github/copilot to 1.0.81-11 - #2409
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
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
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
- 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>
750d0c5 to
5535008
Compare
Cross-SDK Consistency Review ✅ (with one minor gap)This PR updates 1.
|
| 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 · ◷
There was a problem hiding this comment.
Generated by SDK Consistency Review Agent for #2409 · sonnet46 82.3 AIC · ⌖ 5.69 AIC · ⊞ 6.6K
Automated update of
@github/copilotto version1.0.81-11.Changes
@github/copilotinnodejs/package.jsonandtest/harness/package.jsonscripts/codegen)Java Handwritten Code Adaptation Plan
If
java-sdk-testsCI fails on this PR, follow these steps:mvn clean,mvn verifyfromjava/locally or check thejava-sdk-testsworkflow run logs.java/sdk/src/main/java/com/github/copilot/sdk/):nullfor optional new fields).CopilotSession.javaif applicable.java/sdk/src/test/java/com/github/copilot/sdk/):cd java && mvn clean test-compile jar:jar && mvn verify -Dskip.test.harness=truecd java && mvn spotless:applyNext steps
When ready, click Ready for review to trigger CI checks.