Repository navigation
fix(cli): enable WebSockets for Codex Magpie - #3830
Merged
Leeeon233 merged 1 commit intoDec 5, 2026
Merged
Conversation
Model: k3.1-pro
joei4cm
marked this pull request as ready for review
December 5, 2026 10:11
Leeeon233
enabled auto-merge
December 5, 2026 13:01
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.
Related issue
Closes #3721
Problem / pressure
Codex defaults
model_providers.*.supports_websocketstofalse. Lody's Codex/Magpie Responses provider omitted the field, preventing the WebSocket upgrade and causing follow-up turns to re-upload conversation history over HTTP. The fix needs to stay scoped to the generated Codex/Magpie provider configuration.Summary
supports_websockets: trueto the Codex/Magpie provider configuration shared byCODEX_CONFIGandLODY_CODEX_PROFILE_CONFIG.Visual explanation
Simple change: one generated provider capability field plus assertions on the resulting Codex and Pi configuration objects; no control flow, data ownership, or runtime lifecycle changes.
Before / after
supports_websockets, so Codex uses its defaultfalse.supports_websockets: true.Test plan
NODE_OPTIONS="--max-old-space-size=4096" pnpm --filter lody exec vitest run src/agent/magpie-runtime.test.ts— passed: 1 test file, 8 tests.NODE_OPTIONS="--max-old-space-size=4096" pnpm --filter lody typecheck— passed.NODE_OPTIONS="--max-old-space-size=4096" pnpm check:quick— passed lint and repository boundary guards.NODE_OPTIONS="--max-old-space-size=4096" pnpm run docs check --base origin/main— passed with no errors; existing documentation warnings remain.pnpm format— passed.pnpm check/ complete repository test suite, because the task requested focused tests only. No live Codex/Magpie WebSocket acceptance was performed.Context handoff
Original user prompt
Show original prompt
Shared conversation
Status: unavailable
Reason: OpenCode V2 in this authoring environment provides session export but no public HTTP(S) conversation-publishing operation. The user authorized publication of the original prompt and conversation-sharing status in the triggering request.