github-copilot-sdk v0.1.30 (latest on PyPI) is incompatible with github/copilot CLI v1.0.2 (latest on npm).
Error:
SDK protocol version mismatch: SDK expects version 2, but server reports version 3.
Please update your SDK or server to ensure compatibility.
Versions:
Python SDK: github-copilot-sdk==0.1.30 (SDK_PROTOCOL_VERSION = 2 in sdk_protocol_version.py)
Copilot CLI: @github/copilot@1.0.2 (reports protocol version 3)
OS: Windows
Python: 3.13
Root cause: The CLI v1.0.x bumped the protocol to v3, but copilot/sdk_protocol_version.py in the Python SDK still hardcodes SDK_PROTOCOL_VERSION = 2, causing _verify_protocol_version() in client.py to reject the connection.