mirror of
https://github.com/openai/codex.git
synced 2026-10-30 19:18:49 +00:00
## What changed Add optional `request_permissions` and `auto_review_suffix` fields to catalog approval messages. Use them to customize the permission tool heading and introduce automatic review guidance while preserving the bundled instruction bodies and existing policy gates. Accept `request_permissions_tool` as a deserialization alias. Limit headings to 500 UTF-8 bytes on a single line and fall back to bundled text for missing or invalid values. Complete catalog approval messages retain precedence. ## Testing Add coverage for heading validation, serialization aliases, policy gates, fallback behavior, and complete-message precedence. Integration tests verify that model switches append the selected model's headings without rewriting history or repeating unchanged instructions. GitOrigin-RevId: 3311591a464cc086783fe25271a352dd5a229790
13 lines
309 B
Python
13 lines
309 B
Python
load("//:defs.bzl", "codex_rust_crate")
|
|
|
|
exports_files(
|
|
["templates/permissions/approval_policy/on_request_rule_request_permission.md"],
|
|
visibility = ["//codex-rs/core:__pkg__"],
|
|
)
|
|
|
|
codex_rust_crate(
|
|
name = "prompts",
|
|
compile_data = glob(["templates/**"]),
|
|
crate_name = "codex_prompts",
|
|
)
|