Repository navigation
Split Codex hook service responsibilities - #17260
Conversation
…-lines-bottom-12-daemon-init
…ottom-13-gitlab-item-dialog
…lines-bottom-14-relay-dispatcher
…nes-bottom-15-mobile-host-screen
…lines-bottom-16-runtime-file-client
…-lines-bottom-17-ports-panel
…ottom-18-runtime-environments-pane
…ra/max-lines-bottom-19-local-pty-provider
…lines-bottom-20-cdp-bridge # Conflicts: # src/main/browser/cdp-bridge.ts
…ttom-21-git-handler
…ottom-22-linear-item-drawer
…lines-bottom-23-telemetry-events
…nes-bottom-24-resource-usage-status
…ax-lines-bottom-25-remote-terminal-multiplexer
…o ra/max-lines-bottom-26-git-worktree
…bottom-27-codex-hook-service
…7-codex-hook-service # Conflicts: # config/max-lines-baseline.txt # src/renderer/src/hooks/automation-dispatch-completion.ts
|
Warning Review limit reachedNext included review available in 10 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (16)
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (16)
📝 WalkthroughWalkthroughThe Codex hook service was split into focused modules for hook definitions, scripts, trust management, local and remote installation, WSL reconciliation, status reporting, and legacy cleanup. ✨ Finishing Touches 💡 1⚔️ Resolve merge conflicts 💡
📝 Generate docstrings
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 |
Codex fails closed on a hook whose stdout is not valid JSON, so every session started from an Orca terminal reported "invalid session start/stop hook JSON output" even though the POST to Orca's listener succeeded (stablyai#16356). The managed Codex script never wrote anything to stdout. Its siblings all do: claude (stablyai#14818), gemini, copilot and antigravity each emit neutral JSON as the first line, before any early-exit guard. Codex was the only one without it. Rebased onto the module split from stablyai#17260: the builder moved from hook-service.ts to codex-hook-script.ts, so the two lines land there instead. hook-script-outside-orca.test.ts (added in stablyai#16685, after this PR was opened) asserted the managed Codex hook stays silent outside an Orca terminal. Silence is exactly the failure stablyai#16356 reports, and every sibling hook already prints "{}" unconditionally, so the stdout assertions now expect the neutral JSON. The inertness those tests really guard - exit 0, empty stderr, no spool tree written - is unchanged and still asserted.
* Split speech session lifecycle * Split terminal output scheduler pipeline * Split mobile browser pane modules * Prune resolved max-lines suppressions * Split pane tree equalization logic * Extract mobile troubleshoot screen styles * Split external automation manager * Split main window service attachments * Split hosted review creation checks * Split automation dispatch event handling * Split settings navigation metadata * Split daemon initialization lifecycle * Split GitLab item dialog * Split relay dispatcher layers * Split mobile host screen * Retarget mobile view settings source test * Split runtime file client layers * Split ports panel layers * Split runtime environments pane layers * Split local PTY provider responsibilities * Split CDP bridge responsibilities * Split relay Git handler responsibilities * Track moved relay Git fetch audit * Split Linear item drawer responsibilities * Split telemetry event schema responsibilities * Split resource usage status responsibilities * Split remote terminal multiplexer responsibilities * Split Git worktree responsibilities * Split Codex hook service responsibilities * Keep mirrored hook trust type private * Fix F3-speech for stablyai#17123 * Fix F1-cycle for stablyai#17131 * Fix F4-navtest for stablyai#17157 * Fix F2-allowlist for stablyai#17161
Codex fails closed on a hook whose stdout is not valid JSON, so every session started from an Orca terminal reported "invalid session start/stop hook JSON output" even though the POST to Orca's listener succeeded (stablyai#16356). The managed Codex script never wrote anything to stdout. Its siblings all do: claude (stablyai#14818), gemini, copilot and antigravity each emit neutral JSON as the first line, before any early-exit guard. Codex was the only one without it. Rebased onto the module split from stablyai#17260: the builder moved from hook-service.ts to codex-hook-script.ts, so the two lines land there instead. hook-script-outside-orca.test.ts (added in stablyai#16685, after this PR was opened) asserted the managed Codex hook stays silent outside an Orca terminal. Silence is exactly the failure stablyai#16356 reports, and every sibling hook already prints "{}" unconditionally, so the stdout assertions now expect the neutral JSON. The inertness those tests really guard - exit 0, empty stderr, no spool tree written - is unchanged and still asserted.
Codex fails closed on a hook whose stdout is not valid JSON, so every session started from an Orca terminal reported "invalid session start/stop hook JSON output" even though the POST to Orca's listener succeeded (stablyai#16356). The managed Codex script never wrote anything to stdout. Its siblings all do: claude (stablyai#14818), gemini, copilot and antigravity each emit neutral JSON as the first line, before any early-exit guard. Codex was the only one without it. Rebased onto the module split from stablyai#17260: the builder moved from hook-service.ts to codex-hook-script.ts, so the two lines land there instead. hook-script-outside-orca.test.ts (added in stablyai#16685, after this PR was opened) asserted the managed Codex hook stays silent outside an Orca terminal. Silence is exactly the failure stablyai#16356 reports, and every sibling hook already prints "{}" unconditionally, so the stdout assertions now expect the neutral JSON. The inertness those tests really guard - exit 0, empty stderr, no spool tree written - is unchanged and still asserted.
Codex fails closed on a hook whose stdout is not valid JSON, so every session started from an Orca terminal reported "invalid session start/stop hook JSON output" even though the POST to Orca's listener succeeded (stablyai#16356). The managed Codex script never wrote anything to stdout. Its siblings all do: claude (stablyai#14818), gemini, copilot and antigravity each emit neutral JSON as the first line, before any early-exit guard. Codex was the only one without it. Rebased onto the module split from stablyai#17260: the builder moved from hook-service.ts to codex-hook-script.ts, so the two lines land there instead. hook-script-outside-orca.test.ts (added in stablyai#16685, after this PR was opened) asserted the managed Codex hook stays silent outside an Orca terminal. Silence is exactly the failure stablyai#16356 reports, and every sibling hook already prints "{}" unconditionally, so the stdout assertions now expect the neutral JSON. The inertness those tests really guard - exit 0, empty stderr, no spool tree written - is unchanged and still asserted.
Codex fails closed on a hook whose stdout is not valid JSON, so every session started from an Orca terminal reported "invalid session start/stop hook JSON output" even though the POST to Orca's listener succeeded (stablyai#16356). The managed Codex script never wrote anything to stdout. Its siblings all do: claude (stablyai#14818), gemini, copilot and antigravity each emit neutral JSON as the first line, before any early-exit guard. Codex was the only one without it. Rebased onto the module split from stablyai#17260: the builder moved from hook-service.ts to codex-hook-script.ts, so the two lines land there instead.
Summary
_internalscontractStacked on #17253.
Validation
pnpm tcpnpm run check:code-quality:changedpnpm run check:max-lines-ratchet— 59 grandfathered suppressionspnpm run check:runtime-electron-ratchetpnpm run check:reliability-gatesgit diff --check_internalsproperty identity/order, 53 moved top-level declarations, 16 class members, 5 delegated method bodies, runtime literals, 138 comments, singleton sweep state, per-instance WSL maps, and 14-node/38-edge acyclic graph reconciliationVisual proof is N/A because this is an internal Codex hook-service decomposition with no intended rendered UI change.