[upstream-sync] Port session.handoff :host field from copilot-sdk v0.2.0 (upstream PR #900)#65
Draft
github-actions[bot] wants to merge 1 commit intomainfrom
Draft
Conversation
…900) - Add ::remote-session-id spec (string) - Add ::session.handoff-data spec documenting optional :remote-session-id and :host fields (GitHub host URL for source session) - Update API.md to document session.handoff event data fields - Update CHANGELOG.md under [Unreleased] The :host field passes through automatically from wire format since util/wire->clj translates JSON keys to Clojure keywords. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Ports a small but useful change from upstream copilot-sdk PR #900 (merged 2026-03-20).
Upstream Changes Analyzed
@github/copilotto 1.0.10 (addshostto session handoff)copilot.types(Python)Changes Made
src/github/copilot_sdk/specs.clj::remote-session-idspec (string)::session.handoff-dataspec documenting the shape{:remote-session-id "..." :host "..."}(both optional). Uses the existing::hostspec (string).doc/reference/API.mdsession.handoffevent table row to document its optional data fields::remote-session-idand:host.CHANGELOG.md[Unreleased] / ### Added (v0.2.0 sync).Implementation Notes
The
:hostfield (GitHub host URL for the source session, e.g."https://github.com") flows through automatically viautil/wire->cljwhich translates JSON camelCase keys to Clojure kebab-case keywords. No runtime code changes were needed — this PR adds the spec and documentation.Testing
The change is additive (new optional spec + docs). Tests could not be run in this automated environment due to Maven artifact resolution restrictions; the spec changes are straightforward additions with no behavioral impact.