[codex] restore Codex loading state via native hooks#2998
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe Codex wrapper initialization now includes the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
✨ Finishing Touches📝 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 |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary
Restore the Codex pane running/loading indicator by switching Superset to Codex's supported hook path, enabling the upstream
codex_hooksfeature in the default Codex launch command, and migrating already-saved Codex terminal presets that still contain the stale pre-update command.What Changed
UserPromptSubmitto the managed~/.codex/hooks.jsonmerge so Codex emits a supported start signalcodex_hooksin Superset's default Codex terminal preset commandRoot Cause
There were three layers to the regression after the upstream Codex update on March 27-28, 2026:
Startevents, and upstreamopenai/codexchanged that surface.--enable codex_hooks, so Codex never loadedhooks.jsonand no running-state start event could fire.Impact
Codex panes should enter the running/working state again when a prompt is submitted on current Codex builds, including for existing saved Codex terminal presets once the preset normalization path runs.
Validation
bun test packages/shared/src/agent-command.test.tsbun test apps/desktop/src/shared/utils/agent-launch-request.test.tsbun test apps/desktop/src/lib/trpc/routers/settings/preset-execution-mode.test.tsbun test apps/desktop/src/main/lib/agent-setup/agent-wrappers.test.tsbun test apps/desktop/src/main/lib/notifications/server.test.tsbunx biome check apps/desktop/src/lib/trpc/routers/settings/preset-execution-mode.ts apps/desktop/src/lib/trpc/routers/settings/preset-execution-mode.test.ts packages/shared/src/agent-command.ts packages/shared/src/agent-command.test.ts apps/desktop/src/shared/utils/agent-launch-request.test.ts apps/desktop/src/main/lib/agent-setup/agent-wrappers-claude-codex-opencode.ts apps/desktop/src/main/lib/agent-setup/agent-wrappers.test.tsSummary by CodeRabbit
Release Notes
Bug Fixes
Tests