Repository navigation
Isolate Codex hooks in Orca runtime home - #2350
Merged
Merged
Conversation
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
# Conflicts: # src/main/index.ts
Co-authored-by: Orca <[email protected]>
# Conflicts: # src/main/daemon/shell-ready.ts # src/main/providers/local-pty-provider.ts # src/main/providers/local-pty-shell-ready.ts
# Conflicts: # src/main/codex/hook-service.test.ts # src/main/codex/hook-service.ts # src/main/index.ts # src/main/ipc/pty.test.ts # src/main/ipc/pty.ts
5 tasks done
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
Co-authored-by: Orca <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CODEX_HOMEunder userData~/.codex/hooks.json--profile-v2 orca-agent-statuspath, so Orca no longer writes or launches from~/.codex/orca-agent-status.config.tomlMigration / User Impact
~/.codex/hooks.json: the updated install path removes only stale Orca-managed hook commands from the real system hooks file while preserving user/competitor hookscodexkeeps reading the user's normal~/.codexwithout active Orca hooks, while Orca-launched Codex reads Orca's private runtimeCODEX_HOME~/.codex/orca-agent-status.config.tomlprofile block/file created by the Restore agent hook opt-out controls #2778 approach, while preserving any user-authored content in that profile file[features].codex_hooksto[features].hooksonly inside Orca's runtime Codex config, avoiding the Codex 0.133 warning without rewriting the user's real configTests
pnpm run typecheckpnpm run lintgit diff --checkpnpm build:relaypnpm vitest run src/main/agent-trust-presets.test.ts src/main/codex-accounts/runtime-home-service.test.ts src/main/codex-usage/scanner-paths.test.ts src/main/codex/codex-config-mirror.test.ts src/main/codex/codex-home-paths.test.ts src/main/codex/hook-service.test.ts src/main/codex/config-toml-trust.test.ts src/main/ipc/pty.test.ts src/main/providers/local-pty-provider.test.ts src/main/providers/local-pty-shell-ready.test.ts src/main/runtime/orca-runtime.test.ts src/shared/tui-agent-startup.test.ts src/main/agent-hooks/server.test.ts src/main/agent-hooks/remote-hook-service-installers.test.ts src/main/ssh/ssh-relay-session-agent-hooks.integration.test.ts --config config/vitest.config.ts(15 files, 678 tests)brennanb2025/codex-hooksworktree with isolatedORCA_DEV_USER_DATA_PATH: verifiedwindow.api.app.getIdentity()branch/root, runtimeCODEX_HOMEhook/config/trust install, plaincodexlaunch indemo-projectwith noHooks need review, noloading hooks from both, no deprecatedcodex_hooks, and noorca-agent-status.config.tomlwarningUserPromptSubmitpayload through$HOME/.orca/agent-hooks/codex-hook.shfrom an Orca PTY and verifiedagentStatus.onSetemittedagentType: codex,state: working, the expected pane key, andconnectionId: null/work/demo-project: built and deployed the relay, installed/root/.codex/hooks.json,/root/.codex/config.toml, and/root/.orca/agent-hooks/codex-hook.sh, verified all 6 remote Codex hook trust entries, spawned a remote Orca PTY with stable pane env, posted through the remote Codex hook script, and verifiedagentStatus.onSetemitted the expected remote pane withconnectionIdequal to the SSH target idgit -C /work/demo-project status --short --branch,git worktree list --porcelain, remote hook files/config, and relay process state were inspected; no remote repo changes were left behindMade with Orca 🐋