feat(ui): honor CODEX_GATEWAY_MODEL for GitHub deploy sessions - #284
Open
norberia wants to merge 1 commit into
Open
feat(ui): honor CODEX_GATEWAY_MODEL for GitHub deploy sessions#284norberia wants to merge 1 commit into
norberia wants to merge 1 commit into
Conversation
Session creation previously hardcoded gpt-5.5, so the env override only reached new Devboxes. Resolve the model once and use it for both the session request and Devbox env. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
CODEX_GATEWAY_MODELinstead of hardcodinggpt-5.5, using the same resolver as Devbox env injection.gpt-5.5.Usage
把
CODEX_GATEWAY_MODEL设成你要的 model id 即可,空白或不设仍是gpt-5.5。Set it on the Brain UI process (
apps/ui/.envlocally, or Helmui.env.CODEX_GATEWAY_MODEL). Restart the UI after changing it. New GitHub deploy sessions pick it up; in-flight sessions do not.Test plan
CODEX_GATEWAY_MODEL, start a GitHub deploy, confirm the Codex gateway session usesgpt-5.5CODEX_GATEWAY_MODELto another model id on the UI, restart, start a new GitHub deploy, confirm the session uses that idgpt-5.5Made with Cursor