Repository navigation
fix(codex): install and run autostart shims from standalone ocx - #6284
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe Codex shim now constructs standalone-compatible ChangesStandalone Codex shim
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The changes address standalone shim installation and launch behavior without an identified merge-blocking regression. Windows coverage checks generated commands rather than executing the wrappers. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The changed launch behavior preserves existing validation controls and keeps the probe’s interpreter flag out of the saved launcher. A local recovery weakness remains: failure while saving installation state can leave a wrapper installed but unrecognized by normal removal commands. No privilege escalation or cross-user attack path was established; interrupted and concurrent installation behavior remains partially validated. Retained concerns
Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 3 files. (4 skipped: 4 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Owner-authorized maintainer integration into
This records maintainer integration, not an approving self-review. The squash will retain |
Run the Unix install supervisor with BUN_BE_BUN while clearing that flag from the saved launcher. Generate direct ensure commands for standalone runtimes in every shim flavor, and cover installation and launch with a compiled fixture. Closes #6276 Carries the probe approach from #6280. Co-authored-by: drakeo338 <paranoyouz@gmail.com>
dcf934c to
7ea7a5d
Compare
리뷰 · 우선순위 67 / 80이 PR은 리눅스 데스크톱 라인 - 라인 - 라인 - 라인 - 검증 · 포커스 126 pass · 본문 메인테이너의 판단이 필요한 지점 #6280(프로브만)과 #6282(심 ensure만, draft)는 이 PR이 둘 다 덮는다. 이 PR을 머지 경로로 두면 둘은 닫는 쪽이 맞다. 현재 head CI가 초록이 된 뒤에만 너의 추천 원인 두 개를 한 갈래로 묶었고, 컴파일 픽스처·명령 생성·문서가 맞춰져 있다. exact-head CI가 통과하면 이 댓글은 grok-bot이 작성했습니다 |
|
Refreshed owner-authorized maintainer integration into
This is maintainer integration, not an approving self-review. The squash retains |
Summary
Closes #6276. Carries the compiled-probe approach from #6280 (
d31e7f0d6ef1721df378d4bf9d9d13abf2a3cfcd).Standalone desktop
ocxexecutables can install and run the Codex autostart shim. The Unix probe selects Bun interpreter mode withBUN_BE_BUN=1, then removes that flag before invoking the saved Codex launcher. Unix, Windows CMD, and PowerShell wrappers use the existingselfLaunchArgvmode selection to invoke a standalone executable asocx ensure, omitting the virtual bundled CLI path; source/npm launches retain their entrypoint.A compiled regression fixture exercises installation and the installed Unix wrapper, including executable paths with spaces/apostrophes, ensure argv and runtime provenance, flag isolation, Codex argument forwarding, and its exit status. Command-generation tests cover all three wrapper flavors. The new test is registered in both layout maps, and the runtime contract and public guide are synchronized.
Co-authored-by: drakeo338 paranoyouz@gmail.com
Verification
bun test tests/codex-integration/codex-shim-standalone.test.ts tests/codex-integration/codex-shim.test.ts tests/codex-integration/codex-shim-autorestore.test.ts tests/codex-integration/codex-shim-destroyed-probe.test.ts tests/codex-integration/codex-shim-ensure-failure.test.ts tests/codex-integration/codex-shim-readiness.test.ts tests/lib/self-launch-argv.test.ts tests/test-layout.test.ts tests/test-layout-tooling.test.ts— 126 pass, 23 platform skips, 0 fail.phase=group-idrefusal; all three wrappers retain the erroneous virtual-entrypoint command.bun run typecheck,bun run privacy:scan,bun run structure:check,bun scripts/file-size-ratchet.ts, andgit diff --check— pass.cd docs-site && bun install --frozen-lockfile && bun run build— pass (545 pages, 74,719 internal links checked).bun run test:changed— failed: 26,315 pass, 47 skip, 863 fail across 1,339 files. Numerous existing tests create/delete checkout-local fixtures, and the real-home guard refuses those paths inside a managed~/.codex/worktreescheckout. Additional assertion/launcher-shutdown failures are not claimed passing. The focused changed-behavior regressions pass independently.pull_request, attempt 1, completed success for7ea7a5dbddc7c2e40759c3d27439968791fb8890: all 17 requested jobs succeeded. Eight out-of-scope jobs are not claimed passing. Windows standalone tests inspect generated commands; the compiled installation/launch regression executes on Unix.dev(fdf4177dfe2b6885aafef5a67213c08684f9c4f3) before the final CI run;git range-diffconfirms the shim patch is unchanged.Checklist