You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add session-level canvasProvider field to Rust, Node, .NET, Go, and Python SDKs (#1847)
* Add session-level canvasProvider field to Rust, Node, and .NET SDKs
Hosts can now supply a stable canvas-provider identity { id, name? } on
session.create and session.resume so host-provided canvases restore
across cold resume. Serializes as canvasProvider on the wire, mirroring
the existing extensionInfo field. Implements the runtime contract from
github/copilot-agent-runtime#10519.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* Assert canvasProvider.name key is absent, not just null
Indexing with ["name"] returns Value::Null both when the key is absent
and when it is present as null. Since the wire contract omits name when
None, assert the key is not present to catch a regression that would
serialize name: null.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* Add canvasProvider to Go and Python SDKs
Extend the session-level canvasProvider field to the Go and Python SDKs
for parity with Rust, Node, and .NET. Hosts can now send a stable
canvas-provider identity ({ id, name? }) on session.create and
session.resume so host-provided canvases restore across cold resume.
Go: add CanvasProviderIdentity, wire it onto SessionConfig,
ResumeSessionConfig, and both request structs, and forward it in
client.go. Also fix a pre-existing gap where ExtensionInfo was declared
but never forwarded on create/resume.
Python: add CanvasProviderIdentity dataclass, export it, and forward a
canvas_provider param on create_session/resume_session.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
0 commit comments