Repository navigation
Point Codex's gobstopper provider away from the proxy on gobstopper off - #281
Merged
Merged
Conversation
…off`
Codex resumes each session with the provider it started with, so commenting
out the default `model_provider` left resumed sessions calling the stopped
proxy ("Connection failed: error sending request"). `off` now rewrites the
gobstopper provider's loopback base_url to the proxy's upstream (official or
`--chatgpt-upstream`/`--openai-upstream`), marked so `on` can restore it on
the current port, including when another provider is the default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0thernet
enabled auto-merge (squash)
October 16, 2026 23:15
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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.
Problem
Codex records the provider each session started with and keeps it when a session is resumed.
gobstopper off(#280) only commented out the defaultmodel_provider = "gobstopper", so resumed sessions still calledhttp://127.0.0.1:<port>/backend-api/codexafter the proxy stopped and failed withConnection failed: error sending request. This happened on a real machine: about 114 sessions were pinned to the provider.Change
offalso rewrites the loopbackbase_urlin[model_providers.gobstopper]to where the proxy sent requests:https://chatgpt.comfor/backend-api/...andhttps://api.openai.comfor/v1. If the service set--chatgpt-upstreamor--openai-upstream, it uses those instead. The rewritten line is marked# turned off by \gobstopper off`; was ` and keeps its indentation.onrestores marked lines tohttp://127.0.0.1:<current port><path>, including when another provider is the default. With no service and no saved state, it takes the port from the marker.offreports only what changed: new sessions, resumed sessions, or both. It still warns when a loopback URL is left, such as an unmapped path.Checks
-D warnings) pass. Workspace tests pass except three timing tests (apple::…×2 andclef_decide_timeout…), which fail only under full parallel load and pass alone.offagainst a throwaway home directory.🤖 Generated with Claude Code