feat: include available decisions in command approval requests

This commit is contained in:
Michael Bolin
2026-02-25 14:28:19 -08:00
parent be5bca6f8d
commit 7707752ae1
35 changed files with 584 additions and 136 deletions
+1 -1
View File
@@ -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)
}
+1 -1
View File
@@ -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