Skip to content

Update @github/copilot to 1.0.51-3#1351

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

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

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

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

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 21:36
@stephentoub stephentoub requested a review from a team as a code owner May 20, 2026 21:36
Copilot AI review requested due to automatic review settings May 20, 2026 21:36
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

This PR updates the monorepo’s @github/copilot dependency to 1.0.51-3 and re-runs the various language code generators so the SDKs stay in sync with the updated Copilot CLI/schema wire protocol.

Changes:

  • Bumped @github/copilot to ^1.0.51-3 in Node packages and updated lockfiles accordingly.
  • Regenerated RPC/session-event types across Node.js, Python, Go, Rust, and .NET.
  • Picked up schema-driven model updates (notably: new slash-command “select-subcommand” result types, additional enum docs, and ttftMstimeToFirstTokenMs renames).
Show a summary per file
File Description
test/harness/package.json Bumps @github/copilot devDependency version.
test/harness/package-lock.json Lockfile update for @github/copilot@1.0.51-3 and platform packages.
nodejs/package.json Bumps @github/copilot dependency version.
nodejs/package-lock.json Lockfile update for @github/copilot@1.0.51-3 and platform packages.
nodejs/samples/package-lock.json Samples lockfile updated to align @github/copilot version.
nodejs/src/generated/session-events.ts Regenerated session-event types; includes ttftMs rename and expanded doc comments.
nodejs/src/generated/rpc.ts Regenerated RPC types; includes new slash-command result variant and expanded doc comments.
python/copilot/generated/session_events.py Regenerated session-event models; includes ttftMs rename and expanded enum comments.
python/copilot/generated/rpc.py Regenerated RPC models; adds “select-subcommand” slash-command result support.
rust/src/generated/session_events.rs Regenerated session-event Rust types; includes ttftMs rename and enum doc updates.
rust/src/generated/api_types.rs Regenerated Rust RPC/api types; adds slash-command “select-subcommand” result types/variant.
go/rpc/zsession_events.go Regenerated Go session-event types; includes ttftMs rename and enum doc comments.
go/rpc/zrpc.go Regenerated Go RPC types; adds slash-command “select-subcommand” result types and enum docs.
go/rpc/zrpc_encoding.go Updates Go RPC JSON (un)marshalling for the new slash-command result variant.
dotnet/src/Generated/SessionEvents.cs Regenerated .NET session-event models; includes ttftMs rename and URI annotations.
dotnet/src/Generated/Rpc.cs Regenerated .NET RPC models; adds “select-subcommand” derived result and supporting types.

Copilot's findings

Files not reviewed (6)
  • go/rpc/zrpc.go: Language not supported
  • go/rpc/zrpc_encoding.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/16 changed files
  • Comments generated: 2

Comment thread dotnet/src/Generated/SessionEvents.cs
Comment thread go/rpc/zsession_events.go
- nodejs/src/client.ts: Add 10s connection timeout to connectViaTcp() to
  prevent indefinite hangs on Windows when reconnecting after forceStop()
- dotnet/test: Change MCP server command from 'echo' to 'true' in the
  Without_Args test. On Ubuntu, 'echo' (no args) outputs a bare newline
  that confuses the CLI's MCP JSON-RPC reader, causing a 2-minute hang.

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

Cross-SDK Consistency Review

This PR regenerates code from the updated @github/copilot@1.0.51-3 schema uniformly across all five SDKs (Node.js, Python, Go, .NET, Rust), so the generated-code changes are consistent by design. ✅

The one non-generated change is the 10-second TCP connection timeout added to nodejs/src/client.ts. Here's how it compares across SDKs:

SDK Connection timeout Status
Node.js (this PR) setTimeout(..., 10000) ✅ Added
Go context.WithTimeout(ctx, 10*time.Second) in connectViaTcp ✅ Already present
Python TCP_CONNECTION_TIMEOUT = 10 + sock.settimeout() ✅ Already present
Rust TcpStream::connect(...).await? — no timeout ❌ Missing
.NET socket.ConnectAsync(..., cancellationToken) — no SDK-level timeout ❌ Missing

Rust and .NET would benefit from equivalent SDK-level timeouts to ensure a non-responsive CLI server doesn't cause an indefinite hang in those SDKs. This could be addressed in a follow-up PR.

Generated by SDK Consistency Review Agent for issue #1351 · ● 960.1K ·

Copy link
Copy Markdown
Contributor Author

@github-actions github-actions Bot left a comment

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 issue #1351 · ● 960.1K

Comment thread nodejs/src/client.ts
@stephentoub stephentoub merged commit 1015e7a into main May 21, 2026
46 of 47 checks passed
@stephentoub stephentoub deleted the update-copilot-1.0.51-3 branch May 21, 2026 01:48
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