Skip to content

Persist Codex overlay hook trust without the app-server CLI flag #1311

Closed

Description

@currentbits

Follow-up to #1309 / PR #1310. Interactive Codex no longer passes --dangerously-bypass-hook-trust because live Codex 0.153.4 app-server rejects that exec-only flag (exit 2).

Isolated CODEX_HOME + -c features.hooks=true still enable hooks, but Codex skips untrusted command hooks until we persist trust (hooks.state trusted_hash in the isolated home) or forward a JSON-RPC bypass_hook_trust override on thread/start.

Plan

  1. Investigate live CLI trust file format and/or app-server thread/start request config.
  2. Write trust for Solenta overlay hooks so classifyTool still runs on interactive turns.
  3. Do not restore the crashing CLI flag on app-server.
  4. Keep workflow/exec --dangerously-bypass-hook-trust unchanged.
  5. Cover in electron/test/codex.test.js and electron/test/codex-guardrail-remote.test.js.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Sep 11, 2026
  2. currentbits commented on Sep 11, 2026

    @currentbits
    OwnerAuthor

    Interactive Codex overlay now persists hooks.state trusted_hash for Solenta PreToolUse (live 0.153.4 format: [hooks.state."<realpath(hooks.json)>:pre_tool_use:0:0"]). Isolated config.toml is copied, not symlinked. app-server still omits --dangerously-bypass-hook-trust; workflow/exec still passes it.

    Verified: unit tests in electron/test/codex-guardrail-hook.test.js, codex.test.js, codex-guardrail-remote.test.js; live hooks/list reports trustStatus: trusted on a materialized overlay.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions