Skip to content

Update @github/copilot to 1.0.51-2#1342

Merged
stephentoub merged 2 commits into
mainfrom
update-copilot-1.0.51-2
May 20, 2026
Merged

Update @github/copilot to 1.0.51-2#1342
stephentoub merged 2 commits into
mainfrom
update-copilot-1.0.51-2

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.51-2.

Changes

  • Updated @github/copilot in nodejs/package.json and test/harness/package.json
  • Re-ran all code generators (scripts/codegen)
  • Formatted generated output

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 May 20, 2026 12:28
@stephentoub stephentoub requested a review from a team as a code owner May 20, 2026 12:28
Copilot AI review requested due to automatic review settings May 20, 2026 12:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 repo’s @github/copilot dependency to 1.0.51-2 and regenerates all language SDK outputs to match the updated wire schema and tooling.

Changes:

  • Bumped @github/copilot to ^1.0.51-2 in Node.js SDK + test harness, with corresponding lockfile updates (including new detect-libc transitive dependency).
  • Regenerated Rust/Go/.NET/Python generated protocol types to reflect schema changes (notably several nano-AIU / premium-request related fields moving from integer to floating-point types).
  • Reformatted generated outputs.
Show a summary per file
File Description
test/harness/package.json Bumps @github/copilot devDependency to ^1.0.51-2.
test/harness/package-lock.json Updates lockfile to @github/copilot@1.0.51-2 and adds transitive detect-libc.
nodejs/package.json Bumps @github/copilot runtime dependency to ^1.0.51-2.
nodejs/package-lock.json Updates lockfile to @github/copilot@1.0.51-2 and adds transitive detect-libc.
nodejs/samples/package-lock.json Updates sample lockfile’s resolved @github/copilot version via workspace dependency graph.
rust/src/generated/session_events.rs Regenerated session-events types; cost/request fields now use f64 in several places.
rust/src/generated/api_types.rs Regenerated API types; total_nano_aiu now Option<f64> in usage metrics structures.
go/rpc/zsession_events.go Regenerated session-events types; cost/request fields now use float64 in several places.
go/rpc/zrpc.go Regenerated API types; total_nano_aiu now *float64 in usage metrics structures.
python/copilot/generated/session_events.py Regenerated session-events types; nano-AIU and premium-request fields now parsed/typed as float.
python/copilot/generated/rpc.py Regenerated API types; usage metrics nano-AIU fields now parsed/typed as float.
dotnet/src/Generated/SessionEvents.cs Regenerated session-events types; nano-AIU and premium-request fields now double in several places.
dotnet/src/Generated/Rpc.cs Regenerated API types; usage metrics nano-AIU fields now double?.

Copilot's findings

Files not reviewed (5)
  • go/rpc/zrpc.go: Language not supported
  • go/rpc/zsession_events.go: Language not supported
  • nodejs/package-lock.json: Language not supported
  • nodejs/samples/package-lock.json: Language not supported
  • test/harness/package-lock.json: Language not supported
  • Files reviewed: 2/13 changed files
  • Comments generated: 2

Comment thread dotnet/src/Generated/SessionEvents.cs
Comment thread go/rpc/zsession_events.go
The TotalNanoAiu field was changed from int to *float64 in the generated
types, but the test format strings still used %d. This caused go vet to
fail on all three Go CI legs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅

This automated codegen PR (@github/copilot1.0.51-2) maintains excellent consistency across all SDK implementations.

Summary of changes: totalNanoAiu and totalPremiumRequests fields promoted from integer → floating-point types across all SDKs:

SDK Change
Node.js/TypeScript No change needed — TypeScript's number type already covers floats
Python intfloat across all affected fields ✅
Go int64/*int64float64/*float64
.NET long/long?double/double?
Rust i64/Option<i64>f64/Option<f64>

All 7 field instances (across UsageMetricsModelMetric, UsageGetMetricsResult, SessionShutdownData, ShutdownModelMetric, AssistantUsageCopilotUsage, CompactionCompleteCompactionTokensUsedCopilotUsage) are updated consistently in every language. No cross-SDK inconsistencies found.

Generated by SDK Consistency Review Agent for issue #1342 · ● 595.9K ·

@stephentoub stephentoub merged commit d600675 into main May 20, 2026
44 checks passed
@stephentoub stephentoub deleted the update-copilot-1.0.51-2 branch May 20, 2026 13:57
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