Skip to content

Update @github/copilot to 1.0.72-0#2024

Open
github-actions[bot] wants to merge 4 commits into
mainfrom
update-copilot-1.0.72-0
Open

Update @github/copilot to 1.0.72-0#2024
github-actions[bot] wants to merge 4 commits into
mainfrom
update-copilot-1.0.72-0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.72-0.

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.

@stephentoub
stephentoub marked this pull request as ready for review July 18, 2026 02:35
@stephentoub
stephentoub requested a review from a team as a code owner July 18, 2026 02:35
Copilot AI review requested due to automatic review settings July 18, 2026 02:35

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 reference implementation to 1.0.72-0 and synchronizes generated SDK types.

Changes:

  • Updated Node.js, test harness, and Java codegen dependencies and lockfiles.
  • Added the generated userPromptTransformed hook type across SDKs.
  • Updated the Java reference implementation version property.
Show a summary per file
File Description
test/harness/package.json Updates the harness dependency.
test/harness/package-lock.json Locks updated platform packages.
rust/src/generated/api_types.rs Adds the generated Rust hook variant.
python/copilot/generated/rpc.py Adds the generated Python hook variant.
nodejs/src/generated/rpc.ts Adds the generated TypeScript hook variant.
nodejs/samples/package-lock.json Synchronizes the samples dependency.
nodejs/package.json Updates the Node.js SDK dependency.
nodejs/package-lock.json Locks updated Node.js platform packages.
java/src/generated/java/com/github/copilot/generated/rpc/HookType.java Adds the generated Java hook variant.
java/scripts/codegen/package.json Updates the Java codegen dependency.
java/scripts/codegen/package-lock.json Locks updated Java codegen packages.
java/pom.xml Updates the reference implementation property.
go/rpc/zrpc.go Adds the generated Go hook constant.

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: 0
  • Review effort level: Medium

@github-actions

This comment has been minimized.

github-actions Bot and others added 2 commits July 17, 2026 23:34
- Updated nodejs and test harness dependencies
- Re-ran code generators
- Formatted generated code
The 1.0.72 CLI now appends the full built-in tool enumeration to the
"Tool 'report_intent' does not exist." error, while existing snapshots
recorded it truncated. Strip the whole "Available tools that can be
called are <list>." sentence on both the request and stored sides so
list-present, list-absent, and differing list contents are all
equivalent, fixing subagent_hooks (all SDKs) and should_abort_a_session
(Go/Python/Rust/.NET) without editing any snapshots.

Also collapse the new trailing multi-turn advice on the task tool's
background-agent start result to a stable placeholder.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e94bab38-c22e-4a38-8d8b-c82c1991a33c
@stephentoub
stephentoub force-pushed the update-copilot-1.0.72-0 branch from c37f9c3 to f83d703 Compare July 18, 2026 03:34
@github-actions

This comment has been minimized.

The 1.0.72 CLI reworded the background-agent completion system_notification
that the runtime injects as a user message: the status sentence changed from
"has completed successfully." to "has finished processing and is now idle."
and the advice changed from "to retrieve unread results." to "to read the
results, or write_agent to send follow-up messages." Existing snapshots store
the old canonical wording, so the replay proxy could not match live 1.0.72
requests, failing subagent_hooks, should_abort_a_session, and the
background-agent task-details test across every SDK.

Extend the existing task-completion-notification normalization (which already
mapped "retrieve unread results" to "retrieve the full results") into
normalizeAgentCompletionNotification, collapsing every known phrasing of both
sentences to one canonical form on both the request and stored sides.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e94bab38-c22e-4a38-8d8b-c82c1991a33c
@github-actions

This comment has been minimized.

The 1.0.72 CLI reports a finished background agent as "Agent is idle
(waiting for messages)." with status: idle and total_turns >= 1, and
prefixes each turn's output with a "[Turn N]" marker, whereas the
snapshots were recorded against a runtime that reported "Agent completed."
with status: completed, total_turns: 0, and a trailing duration. This
caused subagent_hooks to miss the cached read_agent result and fail.

Add normalizeReadAgentLifecycle, applied symmetrically on stored snapshots
and incoming requests and guarded on the leading status header, to collapse
the lifecycle fields to stable placeholders, drop the trailing duration,
and strip the per-turn markers so snapshots keep matching across runtime
versions. The agent's actual response body is replayed from the snapshot,
so only this CLI-generated framing drifts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e94bab38-c22e-4a38-8d8b-c82c1991a33c
@github-actions

Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅

This PR adds the new userPromptTransformed hook type by updating the @github/copilot dependency to 1.0.72-0 and regenerating types across all SDKs. The change is consistent across all relevant implementations:

SDK Change
Node.js/TypeScript "userPromptTransformed" added to HookType union in rpc.ts
Python USER_PROMPT_TRANSFORMED added to _HookType enum in rpc.py
Go HookTypeUserPromptTransformed constant added in zrpc.go
Java USERPROMPTTRANSFORMED variant added to HookType enum
Rust UserPromptTransformed variant added to HookType enum
.NET Uses string-based hook type dispatch — no enum to update, naturally extensible

All SDKs with a generated HookType enum have been updated consistently. No cross-SDK consistency issues found. 🎉

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by SDK Consistency Review Agent for #2024 · 20.4 AIC · ⌖ 6.38 AIC · ⊞ 5K ·

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