mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
add docstrings to decision struct
This commit is contained in:
@@ -7,8 +7,11 @@ use crate::error::Result;
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub enum Decision {
|
||||
/// Command may run without further approval.
|
||||
Allow,
|
||||
/// Request explicit user approval; rejected outright when running with `approval_policy="never"`.
|
||||
Prompt,
|
||||
/// Command is blocked without further consideration.
|
||||
Forbidden,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user