Skip to content

[codex-rs] Add writes app approval mode - #30482

Merged
zamoshchin-openai merged 1 commit into
mainfrom
dev/alexz/apps-approval-mode-writes
Jul 7, 2026
Merged

[codex-rs] Add writes app approval mode#30482
zamoshchin-openai merged 1 commit into
mainfrom
dev/alexz/apps-approval-mode-writes

Conversation

@zamoshchin-openai

@zamoshchin-openai zamoshchin-openai commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds writes to AppToolApproval and exposes it through config and app-server schemas, including [apps._default].default_tools_approval_mode.
  • In writes, tools with readOnlyHint = true skip approval; all other tools prompt, including non-destructive writes and tools without annotations.
  • Prevents session or persistent approval choices in this mode so later writes still prompt.

Why

auto only prompts for risk-hinted actions, while prompt also interrupts reads. Apps need a middle mode that gates writes without prompting for declared read-only actions.

Validation

  • just write-config-schema
  • just write-app-server-schema
  • just fmt
  • just test -p codex-core mcp_turn_metadata (4 passed)
  • just test -p codex-core writes_mode (2 passed)
  • just test -p codex-app-server config_read_includes_apps (1 passed)
  • just test -p codex-app-server-protocol (251 passed)
  • just test -p codex-config (200 passed)
  • just test -p codex-cli (300 passed)
  • just fix -p codex-core -p codex-config -p codex-app-server-protocol -p codex-app-server -p codex-cli

@winston-openai winston-openai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this. LGTM

@zamoshchin-openai
zamoshchin-openai merged commit f6e251c into main Jul 7, 2026
35 checks passed
@zamoshchin-openai
zamoshchin-openai deleted the dev/alexz/apps-approval-mode-writes branch July 7, 2026 17:14
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

4 participants