Skip to content

feat(copilot): send X-Interaction-Id header with session id - #47215

Merged
rekram1-node merged 1 commit into
devfrom
copilot-interaction-dev
Sep 4, 2026
Merged

feat(copilot): send X-Interaction-Id header with session id#47215
rekram1-node merged 1 commit into
devfrom
copilot-interaction-dev

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Standalone GitHub Copilot session-header change.

Type of change

  • Bug fix

What does this PR do?

Send X-Interaction-Id with the OpenCode session ID from the GitHub Copilot plugin's chat.headers hook. Requests in the same session reuse the ID; different sessions use their own IDs. This applies to Copilot and Copilot Enterprise without changing other providers.

How did you verify your code works?

  • Copilot plugin and model tests: 12 passed, including session stability, separate sessions, both SDK paths, and other-provider isolation.
  • Scoped bun typecheck --project ... for the changed files and package declarations: passed. The full package typecheck was terminated on the host without a result.
  • Prettier and git diff --check: passed.

Screenshots / recordings

Not applicable.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Requested by: @rekram1-node (Aiden via Slack)

@rekram1-node rekram1-node changed the title fix(plugin): send session IDs with GitHub Copilot requests feat(copilot): send X-Interaction-Id header with session id Sep 4, 2026
@rekram1-node
rekram1-node merged commit c0f09af into dev Sep 4, 2026
10 of 12 checks passed
@rekram1-node
rekram1-node deleted the copilot-interaction-dev branch September 4, 2026 04:24
filipeforattini added a commit to reddb-io/redcode that referenced this pull request Sep 5, 2026
…o#47215)

Ported from anomalyco/opencode c0f09af.

Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>

Upstream: c0f09af
filipeforattini added a commit to reddb-io/redcode that referenced this pull request Sep 5, 2026
…o#47215)

Ported from anomalyco/opencode c0f09af.

Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>

Upstream: c0f09af
1056674754 added a commit to 1056674754/opencode that referenced this pull request Sep 7, 2026
Upstream v1.18.27 (4b7e19e, merged at 26dff3f) -> v1.18.29 (1674747),
29 commits / 116 files. Merge base is b046973 (default header timeout to
five minutes). Staged delta vs pre-merge fork HEAD is identical to the
upstream tag-to-tag diff, confirming a clean adoption.

Functional changes:
- fix(opencode): compare Codex GPT versions by major and minor (anomalyco#47385) and
  allow integer GPT versions in the Codex model filter (anomalyco#47384) — codex.ts;
  disjoint from fork snapshot architecture, auto-merged.
- feat(copilot): send X-Interaction-Id header with session id (anomalyco#47215) —
  github-copilot/copilot.ts, 1 line.
- chore: bump gitlab-ai-provider to 6.13.0 (anomalyco#46914).
- test(core): disable npm audits in the test preload (anomalyco#47222).
- console: limits graph, i18n for ar/br/da/de/es/fr/it/ja + others;
  app: dialog-connect-provider and open-in-app-v2 fixes; go.mdx crawl rules
  gain the x-opencode-session header bullet (took upstream whole).

Conflicts resolved: 29 package.json version bumps (rebranded 1.18.29-sscity;
HEAD had moved to the local v1.18.27 merge meanwhile), bun.lock (took
upstream, rebranded workspace entries via bun install), go.mdx (took
upstream — trivial <br/> placement in the crawl-rules list). Fork deltas
verified intact vs v1.18.29: provider ProviderSnapshot architecture,
deferred snapshot init, GLM/ZhiPu normalization in transform.ts (+77 lines
fork-only), config getFresh/commitFresh. Tests: provider, transform, config,
v2, azure plugin, session retry/llm — 1036 pass / 0 fail across 14 files;
typecheck clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.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.

1 participant