Skip to content

feat: supervised permission mode for Codex provider #276

@chuks-qua

Description

@chuks-qua

What

Implement interactive tool permission approval for the Codex provider, completing Phase 2 of the supervised permission mode feature.

Why

Phase 1 (#156) delivered the full end-to-end permission flow for Claude via the canUseTool SDK callback. Codex uses a different mechanism — approvalPolicy: "on-request" with a JSON-RPC approval handler in codex-app-server. The shared infrastructure (push channels, RPC methods, PermissionRequestCard, store, sidebar indicator) is already in place from Phase 1.

Scope

  • Investigate the Codex codex-app-server approval RPC protocol (see apps/server/src/providers/codex/)
  • Implement resolvePermission and listPendingPermissions on the Codex provider
  • Wire the existing permission_request / permission_resolved EventEmitter events into the Codex approval handler
  • Verify the existing PermissionRequestCard renders correctly for Codex tool calls

Out of scope

Related

Phase 1: #156

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions