Skip to content

Fix Codex hook ownership in Orca runtime - #3032

Closed
brennanb2025 wants to merge 2 commits into
mainfrom
brennanb2025/codex-source-preserving-hooks
Closed

brennanb2025 wants to merge 2 commits into
mainfrom
brennanb2025/codex-source-preserving-hooks

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • move Orca-managed Codex hooks into a managed runtime CODEX_HOME instead of mirroring user/global/plugin hooks
  • strip external Codex hook declarations from mirrored runtime config while preserving ordinary Codex settings/project trust
  • configure remote SSH relay Codex runtime homes fail-closed, with auth copied into the managed home before enabling it
  • clean up legacy Orca-owned Codex hooks without mutating user/plugin hooks

Validation

  • pnpm vitest run --config config/vitest.config.ts src/main/codex/codex-config-mirror.test.ts src/main/codex/hook-service.test.ts
  • pnpm vitest run --config config/vitest.config.ts src/main/agent-hooks/remote-hook-service-installers.test.ts src/main/ssh/ssh-relay-session.test.ts src/relay/pty-shell-launch.test.ts
  • pnpm run typecheck
  • pnpm run lint
  • git diff --check

Note: pnpm printed the existing local warning about /Users/thebr/.npmrc referencing unset ${GITHUB_TOKEN}.

Risk assessment

Risk: HIGH

Historic risk metadata backfill based on the existing risk:high label.

Risk: high

Historic risk metadata backfill based on the existing risk:high label.

@nwparker

Copy link
Copy Markdown
Contributor

Coordinator evidence update (2026-05-29): I took over and pushed a scoped follow-up fix.

Decision: landable after commit 81b8314c35ab0672bcc0f94868676c778fa353d3 (Trust remote Codex runtime homes for startup).

Evidence:

Review notes: I also checked related open draft #1309 and merged PR #2816; neither supersedes this narrower runtime-home ownership fix. No merge performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:high High risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants