Skip to content

fix: adapt native fast preload for current Codex#1240

Open
yinsang0910-star wants to merge 7 commits into
BigPizzaV3:mainfrom
yinsang0910-star:codex/pr1089-on-v1.2.21
Open

fix: adapt native fast preload for current Codex#1240
yinsang0910-star wants to merge 7 commits into
BigPizzaV3:mainfrom
yinsang0910-star:codex/pr1089-on-v1.2.21

Conversation

@yinsang0910-star

@yinsang0910-star yinsang0910-star commented Jun 28, 2026

Copy link
Copy Markdown

中文说明

这个 PR 把原生 Fast / service-tier preload 修复迁移到 Codex++ v1.2.21,并额外适配当前 Codex 26.623 系列。

修复内容:

  • 修复 API Key 登录模式下 Codex 原生 Fast / service-tier 不显示或不生效的问题。
  • Windows Store packaged Codex 启动时,改用直接启动 packaged Codex.exe 的方式传入 NODE_OPTIONS,避免 preload 丢失。
  • 更新 service-tier asset patch 模式,适配当前 Codex 26.623 资源,版本标记为 protocol-handle-4

本地验证:

  • 从补丁版 Codex++ 启动 Codex 后,Fast 模式已出现并可启用。
  • protocol-handle-4 preload 成功加载。
  • 两个原生 service-tier asset 都成功 patch,没有 service_tier_preload_asset_patch_failed

Fork 预发布版本:

Summary

Rebase the native Fast / service-tier preload fix onto Codex++ v1.2.21 and adapt it for current Codex 26.623 builds.

Changes:

  • Fix native Fast / service-tier visibility and behavior for API-key auth.
  • Preserve NODE_OPTIONS on Windows Store packaged Codex launches by using a direct packaged executable launch when the preload is enabled.
  • Update the preload asset patch patterns for current Codex 26.623 service-tier bundles, using protocol-handle-4.

Verification

  • cargo +stable-x86_64-pc-windows-msvc test -p codex-plus-core service_tier_preload -- --nocapture
  • cargo +stable-x86_64-pc-windows-msvc test -p codex-plus-core launcher_uses_gated_startup_preload_without_proxy_environment_override -- --nocapture
  • cargo +stable-x86_64-pc-windows-msvc build --release -p codex-plus-launcher
  • Local isolated Codex run logged protocol-handle-4 service_tier_preload_asset_patched for both service-tier assets.

@yinsang0910-star

Copy link
Copy Markdown
Author

I published a fork prerelease for manual validation while this PR is pending:

https://github.com/yinsang0910-star/CodexPlusPlus/releases/tag/v1.2.21-fast.1

Local verification on Windows with Codex 26.623.5546.0:

  • Launching Codex from the patched Codex++ build exposes Fast mode.
  • protocol-handle-4 preload loads successfully.
  • Both native service-tier assets are patched without service_tier_preload_asset_patch_failed.

Commands run locally:

  • cargo +stable-x86_64-pc-windows-msvc test -p codex-plus-core service_tier_preload -- --nocapture
  • cargo +stable-x86_64-pc-windows-msvc test -p codex-plus-core launcher_uses_gated_startup_preload_without_proxy_environment_override -- --nocapture
  • cargo +stable-x86_64-pc-windows-msvc build --release -p codex-plus-launcher

@yinsang0910-star

Copy link
Copy Markdown
Author

Fork prerelease assets are now built and attached successfully:

https://github.com/yinsang0910-star/CodexPlusPlus/releases/tag/v1.2.21-fast.1

Assets:

  • CodexPlusPlus-1.2.21-fast.1-windows-x64-setup.exe
  • CodexPlusPlus-1.2.21-fast.1-macos-x64.dmg
  • CodexPlusPlus-1.2.21-fast.1-macos-arm64.dmg
  • latest.json

Release workflow run: https://github.com/yinsang0910-star/CodexPlusPlus/actions/runs/28313118466

@yinsang0910-star

Copy link
Copy Markdown
Author

Maintainer note: this PR is currently mergeable, and the fork prerelease assets built successfully.

Could you review/merge this when convenient? It directly addresses #949, and the linked prerelease gives affected users a temporary installer while waiting for an upstream release.

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