Repository navigation
Deduplicate Codex hook trust blocks - #3196
Merged
Merged
Conversation
This was referenced May 29, 2026
Co-authored-by: Orca <[email protected]>
|
Hi there! You are welcome, just tried the latest version 1.4.38 , i updated current installation but still facing the same error: I uninstalled the application and installed it again. Also i notice, not sure if related with this issue, that the app , after closed in windows do not starts again. i need to kill the orca process in other to launch it again |
7 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]> Co-authored-by: brennanb2025 <[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
[hooks.state."..."]tables for the same Codex hook trust key during upsertenabled = falseif any duplicate copy had been disabledFixes #3190.
Design / Review Outcome
docs/codex-hook-trust-duplicate-tables.mdin the validation worktree.CodexHookService.install()restart regression; added it.enabled = falsebefore dedupe repairreadHookTrustEntriesneeded the same TOML-aware scanner as upsert/removeImplementation Notes
upsertHookTrustEntriesnow finds every real trust block for the target key, rewrites the first, drops later duplicates, and preserves disabled state if any duplicate was disabled.removeHookTrustEntriesnow removes all real blocks for a requested key, which also fixes stale duplicate cleanup in hook-service paths.Validation
pnpm run typecheckpnpm run lintgit diff --checkpnpm exec vitest run --config config/vitest.config.ts src/main/codex/config-toml-trust.test.ts src/main/codex/hook-service.test.ts src/main/agent-hooks/installer-utils-remote.test.ts(98 tests passed)pnpm vitest run --config config/vitest.config.ts src/main/agent-hooks/remote-hook-service-installers.test.ts(Brennan validation pass)config.toml/hooks.jsonfiles exercised:SessionStarttrust repairenabled = falsepreservationC:\...trust keysManual Validation / Product Surface
CodexHookService.install()andrefreshRuntimeUserHooks()against real temp filesystem state.SSH / Cross-Platform
Verdict
Risk assessment
Risk: HIGH
Historic risk metadata backfill based on the existing
risk:highlabel.