Skip to content

Command escalation information look to be not available in Codex hooks #28117

@patatoid

Description

@patatoid

What version of Codex CLI is running?

0.139.0

What subscription do you have?

Pro 5x

Which model were you using?

gpt-5.5 medium

What platform is your computer?

Linux 6.12.90+deb13.1-amd64 x86_64 unknown

What terminal emulator and version are you using (if applicable)?

neovim

Codex doctor report

What issue are you seeing?

The escalated command was approved and executed successfully. From the hook side, escalation does not seem available or enforceable enough to distinguish this from other command authorization cases.

What steps can reproduce the bug?

Uploaded thread: 019ec28d-72b9-7d10-8f21-0f4f32c88dba

What is the expected behavior?

Hook payloads should expose escalation state and target command details in a way that allows a hook to make an enforceable decision before the command runs. If a hook returns a block decision, the escalated operation should not execute.

Additional information

I encountered the issue while working on a hook malach-it/boruta-server#163, I am discovering hooks then I may be wrong, sorry if it is the case.

Thank you for your work on Codex

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workinghooksIssues related to event hookssandboxIssues related to permissions or sandboxing

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions