Skip to content

fix: update SDK protocol version to v2#2

Merged
0xeb merged 1 commit intomainfrom
fix/protocol-v2
Jan 24, 2026
Merged

fix: update SDK protocol version to v2#2
0xeb merged 1 commit intomainfrom
fix/protocol-v2

Conversation

@0xeb
Copy link
Owner

@0xeb 0xeb commented Jan 24, 2026

Summary

Copilot CLI v0.0.394+ uses protocol version 2. This PR updates kSdkProtocolVersion from 1 to 2 to match.

Without this fix, the SDK throws:

SDK protocol version mismatch: SDK expects version 1, but server reports version 2

Changes

  • include/copilot/types.hpp: Update kSdkProtocolVersion to 2
  • tests/test_types.cpp: Update test expectations

Testing

  • E2E tests pass with BYOK (35/38 passed, 2 skipped as expected for BYOK)
  • Verified with z.ai GLM-4.7 endpoint

Copilot CLI v0.0.394 uses protocol version 2.
Update kSdkProtocolVersion from 1 to 2 to match.
@0xeb 0xeb merged commit 8414c9d into main Jan 24, 2026
3 checks passed
@0xeb 0xeb deleted the fix/protocol-v2 branch January 24, 2026 10:12
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.

1 participant