GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(core): expose session transport eligibility by nexxeln · Pull Request #41558 · anomalyco/opencode

Conversation

@nexxeln

@nexxeln nexxeln commented Aug 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Issue for this PR

N/A

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Collects Session HTTP middleware once during SessionModelRequest.prepare and installs an HTTP wrapper only when middleware is actually registered. Prepared model requests now expose whether they are eligible for Session-bound WebSocket execution.

The existing Request/Response bridge, middleware nesting order, repeated sends, interruption, and synthetic response replacement remain unchanged. Codex base URL and headers are moved out of the built-in Session HTTP hook into transport-neutral provider and Session headers so ChatGPT-authenticated OpenAI requests remain WebSocket-eligible.

How did you verify your code works?

  • cd packages/core && bun typecheck
  • cd packages/core && bun test test/plugin/promise.test.ts test/plugin/provider-openai.test.ts test/session-runner.test.ts test/session-model-request.test.ts
  • bun typecheck from the workspace root

Screenshots / recordings

N/A

Checklist

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nexxeln
nexxeln force-pushed the responses-route-unification branch from 5baceaf to c61cf45 Compare August 14, 2026 16:05
@nexxeln
nexxeln force-pushed the session-http-eligibility branch 2 times, most recently from 66ab49e to c2f4de7 Compare August 14, 2026 16:33
@nexxeln
nexxeln force-pushed the responses-route-unification branch 2 times, most recently from bdfed34 to abea8f9 Compare August 14, 2026 16:34
@nexxeln
nexxeln force-pushed the session-http-eligibility branch from c2f4de7 to 54561c5 Compare August 14, 2026 16:34
Base automatically changed from responses-route-unification to v2 August 14, 2026 16:34
nexxeln added 2 commits August 14, 2026 22:04
@nexxeln
refactor(core): expose session transport eligibility
23f3dd5
@nexxeln
chore(core): clean websocket eligibility
ec8bc49
@nexxeln
nexxeln force-pushed the session-http-eligibility branch from 54561c5 to ec8bc49 Compare August 14, 2026 16:34
@nexxeln
nexxeln merged commit 810156d into v2 Aug 14, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nexxeln
nexxeln deleted the session-http-eligibility branch August 14, 2026 16:35
@rekram1-node rekram1-node mentioned this pull request Aug 17, 2026
fix(core): restore OpenAI request headers #42959
Merged
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
@nexxeln
refactor(core): expose session transport eligibility (anomalyco#41558)
f54a81f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@nexxeln
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.