Update bundled apply_patch source
Use this skill when refreshing the vendored Rust apply_patch source from the immutable local Codex checkout at /home/igorw/Frameworks/codex.
Goal
Keep CI/release self-contained. GitHub Actions builds native binaries from source committed to this repository under vendor/apply-patch-src; it must not clone the upstream openai/codex repository during package publish.
Procedure
Update and validate the local Codex checkout manually if needed. Treat this path as immutable:
cd /home/igorw/Frameworks/codex git status --short git pull --ff-only git rev-parse HEADThe sync script refuses to copy from a dirty checkout. If the checkout is clean, refresh the minimal vendored source snapshot:
cd /home/igorw/Work/pi-codex-conversion npm run sync:apply-patch-sourceBuild the host-native binary from the committed snapshot, not from
/home/igorw/Frameworks/codex:npm run build:apply-patchValidate the package:
npm run check npm pack --dry-run --ignore-scriptsInspect changed files. Expected source snapshot paths include:
vendor/apply-patch-src/Cargo.toml vendor/apply-patch-src/Cargo.lock vendor/apply-patch-src/UPSTREAM vendor/apply-patch-src/crates/codex-apply-patch/** vendor/apply-patch-src/crates/codex-exec-server/** vendor/apply-patch-src/crates/codex-utils-absolute-path/**Do not commit
vendor/apply-patch-src/target/.Do not run
npm publishlocally. GitHub Actions builds all platform binaries and publishes npm packages from pushes todev,main, ormaster.
Design notes
codex-apply-patchsource andcodex-utils-absolute-pathare copied from the local Codex checkout.codex-exec-serveris intentionally a tiny compatibility shim that exposes only the filesystem API needed by standaloneapply_patch; this avoids vendoring the whole Codex workspace.vendor/apply-patch-src/UPSTREAMrecords the exact upstream Codex commit.