mirror of
https://github.com/openai/codex.git
synced 2026-11-12 21:20:34 +00:00
## Why MCP tools marked with `readOnlyHint: true` could still require approval in automatic mode when `destructiveHint` was also true. ## What changed Give `readOnlyHint` precedence over `destructiveHint` and `openWorldHint` when deciding whether annotations require approval. Explicit prompt mode and strict automatic review continue to require their respective approval checks. ## Testing Update unit tests for conflicting annotations, prompt mode, and strict automatic review. Extend app integration coverage to verify that read-only calls proceed while writes prompt in both automatic and writes approval modes. GitOrigin-RevId: 11a930b857886bf41d09fd54c3a38607ae3d1b4e