mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
agentydragon(tasks): consolidate external script predicates as Python predicates (never expire)
This commit is contained in:
@@ -13,7 +13,7 @@ Allow users to plug in an external executable that makes approval decisions for
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- Support a new `[[custom_approval_predicates]]` section in `config.toml`, each with an `executable = "..."` field.
|
||||
- Support a new `[[approval_predicates]]` section in `config.toml` for Python-based predicates, each with a `python_predicate_binary = "..."` field (pointing to the predicate executable) and an implicit `never_expire = true` setting.
|
||||
- Before prompting the user, invoke each configured predicate in order, passing the following (via CLI args or env vars):
|
||||
- Session ID
|
||||
- Container working directory (CWD)
|
||||
|
||||
Reference in New Issue
Block a user