Skip to content

Codex app-server dies on --dangerously-bypass-hook-trust #1309

Closed

Description

@currentbits

Interactive Codex fails immediately with:

Run error (exit 2):
error: unexpected argument '--dangerously-bypass-hook-trust' found
Usage: codex app-server --listen <URL> --config <key=value>

startCodexRun (#1170) inherited the #813 exec-only flag when building codex app-server argv. Isolated CODEX_HOME + -c features.hooks=true are still valid; the bypass flag is not an app-server option.

Fix: keep the overlay on exec/workflow, omit --dangerously-bypass-hook-trust from app-server argv (or map it to a supported --config if Codex adds one). Update electron/test/codex.test.js #813 assertion so it no longer requires the flag on app-server.

Activity

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

    @currentbits
    OwnerAuthor

    Root cause confirmed on live Codex 0.153.4: app-server --help has no --dangerously-bypass-hook-trust (exec-only). startCodexRun inherited it from the #813 overlay, so desktop interactive turns exited 2 immediately.

    Fix in this checkout:

    • omit the flag from local and remote app-server argv; keep isolated CODEX_HOME + -c features.hooks=true
    • exec/workflow still pass the flag
    • fake app-server now rejects the flag the same way as live CLI
    • tests: electron/test/codex.test.js Codex app-server dies on --dangerously-bypass-hook-trust #1309 + electron/test/codex-guardrail-remote.test.js
  3. added
    plan:done
    and removed
    plan:doing
    on Sep 11, 2026
  4. currentbits commented on Sep 11, 2026

    @currentbits
    OwnerAuthor

    Implemented on this checkout: startCodexRun no longer passes --dangerously-bypass-hook-trust to app-server. Restart Solenta from this tree and Retry the Codex thread. Not committed yet.

  5. currentbits commented on Sep 11, 2026

    @currentbits
    OwnerAuthor

    Nightly published: https://github.com/currentbits/solenta/releases/tag/nightly-202609110742-769984bf

    SHA 769984b on coder/fix-codex-appserver-hook-trust-1309 (origin/main + this fix). Signed, notarized, stapled. Not merged to main yet.

  6. currentbits commented on Sep 11, 2026

    @currentbits
    OwnerAuthor

    PR: #1310

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