Skip to content

feat(ui): honor CODEX_GATEWAY_MODEL for GitHub deploy sessions - #284

Open
norberia wants to merge 1 commit into
mainfrom
feat/ui-codex-gateway-model
Open

feat(ui): honor CODEX_GATEWAY_MODEL for GitHub deploy sessions#284
norberia wants to merge 1 commit into
mainfrom
feat/ui-codex-gateway-model

Conversation

@norberia

Copy link
Copy Markdown
Contributor

Summary

  • GitHub deploy session creation now reads CODEX_GATEWAY_MODEL instead of hardcoding gpt-5.5, using the same resolver as Devbox env injection.
  • Blank or unset values still fall back to gpt-5.5.

Usage

CODEX_GATEWAY_MODEL 设成你要的 model id 即可,空白或不设仍是 gpt-5.5

Set it on the Brain UI process (apps/ui/.env locally, or Helm ui.env.CODEX_GATEWAY_MODEL). Restart the UI after changing it. New GitHub deploy sessions pick it up; in-flight sessions do not.

Test plan

  • Unset CODEX_GATEWAY_MODEL, start a GitHub deploy, confirm the Codex gateway session uses gpt-5.5
  • Set CODEX_GATEWAY_MODEL to another model id on the UI, restart, start a new GitHub deploy, confirm the session uses that id
  • Set it to whitespace only and confirm it still falls back to gpt-5.5

Made with Cursor

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant