Skip to content

[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
upstream-sync/2026-03-23-d0a9e101fed9e845
Draft

[upstream-sync] Port session.handoff :host field from copilot-sdk v0.2.0 (upstream PR #900)#65
github-actions[bot] wants to merge 1 commit intomainfrom
upstream-sync/2026-03-23-d0a9e101fed9e845

Conversation

@github-actions
Copy link
Contributor

Summary

Ports a small but useful change from upstream copilot-sdk PR #900 (merged 2026-03-20).

Upstream Changes Analyzed

PR Title Action
#900 Update @github/copilot to 1.0.10 (adds host to session handoff) ✅ Ported
#816 Add fine-grained system prompt customization (customize mode) ✅ Already in v0.2.0.0
#883 Fix Go codegen enum prefixes ❌ Skip — Go-specific
#881 Handle unknown session event types (.NET) ❌ Skip — .NET-specific
#871 Remove copilot.types (Python) ❌ Skip — Python-specific

Changes Made

src/github/copilot_sdk/specs.clj

  • Added ::remote-session-id spec (string)
  • Added ::session.handoff-data spec documenting the shape {:remote-session-id "..." :host "..."} (both optional). Uses the existing ::host spec (string).

doc/reference/API.md

  • Updated the session.handoff event table row to document its optional data fields: :remote-session-id and :host.

CHANGELOG.md

  • Added entry under [Unreleased] / ### Added (v0.2.0 sync).

Implementation Notes

The :host field (GitHub host URL for the source session, e.g. "https://github.com") flows through automatically via util/wire->clj which 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.

Generated by Upstream Sync Agent ·

  • expires on Mar 30, 2026, 2:19 PM UTC

…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants