[wip] Add canvas launch authorization and session retention - #2630
Draft
ulugbekna wants to merge 1 commit into
Draft
[wip] Add canvas launch authorization and session retention#2630ulugbekna wants to merge 1 commit into
ulugbekna wants to merge 1 commit into
Conversation
Require an exact live launch-provider contract acknowledgement before session startup and on replacement connections. Preserve ordinary client behavior when no provider is configured, and fail closed instead of falling back. Expose explicit no-turn retention through generated session RPCs and a connected-client retain-by-ID helper. Include source, reconnect, runtime and packed-consumer regression coverage and document the public contract. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a069b1a2-65a9-4427-b3fe-6546a3bffc9e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the public Node SDK launch-provider and no-turn retention contracts required by a host that runs explicitly approved local canvas packages.
Included
CopilotClientOptions.extensionLaunchProvider, public request/result/profile/source types, and exact live{ contractVersion: 1 }acknowledgement before creation/resume and on replacement connections.session.retain/session.retainedbindings andclient.retainSession(sessionId)for connected-client retention while an initial create/resume is still waiting on a launch resolver.This API is not a code-integrity mechanism, trust store or backend sandbox. The consuming host still owns exact package/revision/workspace approval.
Validation
npx vitest run test/extension-launch-provider.test.ts— 23 passing.WIP / dependencies
Local
.local/andnodejs/.local/caches, packed artifacts, runtime logs and consumer scratch directories are intentionally excluded.Public companion drafts
The runtime implementation is tracked separately in its existing private repository.