Repository navigation
fix(codex): exclude macOS Electron helpers from client diagnostics (carry #6296) - #6393
Conversation
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. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (2)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 (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughProcess classification and macOS process enumeration now exclude Codex.app Electron helpers from Codex client results. The changes also document and test handling of executable paths with spaces. ChangesCodex client detection
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change excludes macOS helper processes from client diagnostics without changing termination behavior. No concrete merge-blocking issue is established; native macOS validation remains unreported. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 37.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 2 files. (2 skipped: 2 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. |
|
Maintainer integration record (MAINTAINERS.md, dev-only)
|
Summary
Carries #6296 by @hulkbig onto current
dev. Closes #6291.On macOS,
ocx statusandocx doctorlisted Codex.app's Electron helpers (crashpad, renderer, utility) as Codex CLI clients inclients=pending-restart(...). The issue reports one app instance inflating to 15 fake clients, and a long-lived crashpad handler holding the warning open. The cause is the space inCodex Framework.framework. The classifier split the unquotedpsargs at the first space, so/Applications/Codex.app/Contents/Frameworks/Codex Framework.framework/.../browser_crashpad_handlerproduced an argv0 whose basename isCodex.isCodexClientProcesstrusts a full executable path over an argv0 guessed from args. A full non-interpreter path that is notcodexis rejected, and the snapshot fallback that retried with a truncated argv0 is removed. When only a basename is available, the splitCodex.app/Contents/Frameworks/Codex+Framework.framework/token pair is rejected explicitly.commandargsseparately and joins them by PID, because the combined columns also truncated executable paths with spaces. The Linux probe and the app-server termination selector are unchanged.structure/runtime.mdand the CLI lifecycle reference describe the rule.The two contributor commits are replayed unchanged with their author. The contributor branch does not allow maintainer edits, so this is a carry instead of a push to that branch.
Carried from #6296. Original author: @hulkbig.
Co-authored-by: Hulk [email protected]
Verification
native-profile-processesandautostart-health). No native macOS end-to-end run is claimed; the tests are fixture-based.git cherry-pickof08248d0723..0a5dc2d5d1ontodevde8afe2e86, with no conflicts.git diff --checkandbun run structure:checkpass. No changed file is in the file-size baseline.Checklist
Summary by CodeRabbit
Bug Fixes
Documentation