Skip to content

build: vendor codex binary from bitgate/codex fork - #1

Open
aristotaloss wants to merge 1 commit into
masterfrom
feature/fork-codex-binary
Open

aristotaloss wants to merge 1 commit into
masterfrom
feature/fork-codex-binary

Conversation

@aristotaloss

Copy link
Copy Markdown

What

resolveCodexVendor now prefers a codex binary built from our bitgate/codex fork over the @cometix npm packages:

  1. CODEX_VENDOR_BIN env var (hard-fails if set but missing — no silent fallback)
  2. vendor/codex/<target-triple>/codex[.exe] in the repo root
  3. existing @cometix resolution (unchanged fallback)

Why

The fork's app-server adds the profile-based model selector (bitgate/codex#1): profiles from config.toml / *.config.toml appear in the desktop model picker. That only reaches the app if the bundled codex binary is ours.

Binaries come from the rolling fork-binaries release on bitgate/codex (codex-binaries workflow). CI flow: download codex-<triple> from that release → set CODEX_VENDOR_BIN → build as usual.

No renderer patch needed — the current upstream bundle already displays any non-hidden model/list entry in the picker.

resolveCodexVendor now prefers CODEX_VENDOR_BIN or vendor/codex/<triple>/
over the @cometix packages, so builds can ship our app-server with the
profile-based model selector.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant