mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
feat: include available decisions in command approval requests
This commit is contained in:
@@ -336,7 +336,7 @@ fn handle_server_request(
|
||||
..
|
||||
} => {
|
||||
let response = codex_app_server_protocol::CommandExecutionRequestApprovalResponse {
|
||||
decision: CommandExecutionApprovalDecision::Decline,
|
||||
decision: CommandExecutionApprovalDecision::Cancel,
|
||||
};
|
||||
send_jsonrpc_response(stdin, request_id, response)
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ pub fn start_reader(
|
||||
let command_decision = if auto_approve {
|
||||
CommandExecutionApprovalDecision::Accept
|
||||
} else {
|
||||
CommandExecutionApprovalDecision::Decline
|
||||
CommandExecutionApprovalDecision::Cancel
|
||||
};
|
||||
let file_decision = if auto_approve {
|
||||
FileChangeApprovalDecision::Accept
|
||||
|
||||
Reference in New Issue
Block a user